rpm、yum、编译安装轻松管理centos7程序包(20)
- UID
- 1066743
|
rpm、yum、编译安装轻松管理centos7程序包(20)
h、yum命令行选项
--nogpgcheck:禁止进行gpg check
# 如果在yum仓库中对gppcheck的值设定为1时如果不想检查可以使用此选项
-y: 自动回答为“yes”
-q:静默模式
# yum -q install httpd -y
# rpm -q httpd
httpd-2.4.6-40.el7.centos.x86_64
--disablerepo=repoidglob:临时禁用此处指定的repo
注意:此时虽然安装成功,但是没有使用[base]
# yum --disablerepo=base install samba -y
Loaded plugins: fastestmirror, langpacks
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package samba.x86_64 0:4.2.3-12.el7_2 will be installed
--> Finished Dependency Resolution
........
Running transaction
Installing : samba-4.2.3-12.el7_2.x86_64 1/1
Verifying : samba-4.2.3-12.el7_2.x86_64 1/1
Installed:
samba.x86_64 0:4.2.3-12.el7_2
Complete!
--enablerepo=repoidglob:临时启用此处指定的repo
# 一般用于仓库中 enabled=0 时
--noplugins:禁用所有插件
# 在/etc/yum/pluginconf.d/下定义 |
|
|
|
|
|