第2章 创建Windows Software Repository

简介:

第2章 创建Windows Software Repository

1,创建windows 7zip software repository 

a)Download7zip file

i.http://222.73.28.28/3/ishare.down.sina.com.cn/21577614.msi?ssig=mH3OMLIPMY&Expires=1366387200&KID=sina,ishare&ip=1366259396,219.143.215.&fn=7z920-x64.msi

b)创建7zip目录

i.Mkdir –p /srv/salt/win/repo/7zip

c)创建配置7zip文件

i.Vim /srv/salt/win/repo/7zip/init.sls

1.7zip:
2.9.20:
3.installer:salt://win/repo/7zip/7z920-x64.msi 
4.full_name:7zip 9.22
5.reboot:False
6.install_flags:'/q'
7.msiexec:True
8.uninstaller:salt://win/repo/7zip/7z920-x64.msi
9.uninstall_flags:'/qn'

d)生成换成文件winrepo.genrepo

i.salt-run winrepo.genrepo

e)分发缓存文件到所有win minion

i.Salt \win* pkg.refresh_db 

f)查看安装版本信息

i.salt \*win pkg.available_version 7zip

g)安装7zip 

i.salt \* pkg.install 7zip
ii.salt \* pkg.install 7zip version=*.* 版本号
h)更新 github 配置文件
i.salt-run winrepo.update_git_repos 

i)注:目前14版本只支持MSI格式,EXE 文件格式失败,必须把EXE转换成MSI ,有的工具转换可以成功,但是会涉及的版本的兼容性,无法实现静默安装!

 

 

 

2.1 Official Example

2.1.1 Exe format 

firefox:
17.0.1:
installer:'salt://win/repo/firefox/English/FirefoxSetup17.0.1.exe'
full_name:Mozilla Firefox 17.0.1 (x86 en-US)
locale:en_US
reboot:False
install_flags:'-ms'
uninstaller:'%ProgramFiles(x86)%/MozillaFirefox/uninstall/helper.exe'
uninstall_flags:'/S'
16.0.2:
installer:'salt://win/repo/firefox/English/FirefoxSetup16.0.2.exe'
full_name:Mozilla Firefox 16.0.2 (x86 en-US)
locale:en_US
reboot:False
install_flags:'-ms'
uninstaller:'%ProgramFiles(x86)%/MozillaFirefox/uninstall/helper.exe'
uninstall_flags:'/S'
15.0.1:
installer:'salt://win/repo/firefox/English/FirefoxSetup15.0.1.exe'
full_name:Mozilla Firefox 15.0.1 (x86 en-US)
locale:en_US
reboot:False
install_flags:'-ms'
uninstaller:'%ProgramFiles(x86)%/MozillaFirefox/uninstall/helper.exe'
uninstall_flags:'/S'

2.1.2 Msi format 

svn:

1.7.2.22:

installer: salt://win/repo/svn/svn-1.7.2.22.msi

full_name: svn 1.7.2.22

reboot: False

install_flags: ' /q '

msiexec: True

uninstaller: salt://win/repo/svn/svn-1.7.2.22.msi

uninstall_flags: ' /qn'

2.1.3 Online install 

filezilla:

3.6.0.2:

installer: http://downloads.sourceforge.net/project/filezilla/FileZilla_Client/3.6.0.2/FileZilla_3.6.0.2_win32-setup.exe?r=&ts=1356711987&use_mirror=superb-dca3

install_flags: ' /S'

full_name: FileZilla Client 3.6.0.2

uninstaller: '%ProgramFiles(x86)%\FileZilla FTP Client\uninstall.exe'

uninstall_flags: ' /S'

2.1.4 URL 

http://docs.saltstack.com/ref/windows-package-manager.html

 

 

本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1184480

相关文章
|
消息中间件 Kafka Windows
Kafka Windows运行错误:创建消费者报错 consumer zookeeper is not a recognized option
Kafka Windows运行错误:创建消费者报错 consumer zookeeper is not a recognized option
475 0
Kafka Windows运行错误:创建消费者报错 consumer zookeeper is not a recognized option
|
PHP Windows
php windows多进程,php windows创建多进程,
php windows多进程,php windows创建多进程,
520 0
|
Linux 测试技术 iOS开发
【实测】windows下进程的创建和终止-python3
【实测】windows下进程的创建和终止-python3
|
存储 安全 搜索推荐
微软发布 Windows 365:将 PC 置于云端,几分钟就能创建
微软发布 Windows 365:将 PC 置于云端,几分钟就能创建
168 0
微软发布 Windows 365:将 PC 置于云端,几分钟就能创建
|
Shell 开发工具 git
如何在Windows上使用Git创建一个可执行脚本?
长话短说,今天介绍如何在windows上使用Git上创建一个可执行的shell脚本。
如何在Windows上使用Git创建一个可执行脚本?
|
开发工具 Python Windows
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(三)
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(三)
142 0
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(三)
|
Python Windows
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(二)
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(二)
137 0
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(二)
|
Python Windows
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(一)
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(一)
193 0
【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(一)
|
C++ Windows
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(二)
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(二)
194 0
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(二)
|
C++ Windows
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(一)
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(一)
351 0
【Visual Studio】Visual Studio 2019 创建 Windows 控制台程序 ( 安装 ‘使用 C++ 的桌面开发‘ 组件 | 创建并运行 Windows 控制台程序 )(一)

热门文章

最新文章