博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
4.2. yum - Yellowdog Updater Modified
阅读量:5734 次
发布时间:2019-06-18

本文共 3661 字,大约阅读时间需要 12 分钟。

4.2.1. install

yum -y install package

reinstall

yum -y reinstall package

4.2.2. localinstall

yum localinstall 可以代替 rpm -ivh 并且会自己安装依赖包

# yum localinstall asymptote-2.08-1.fc12.i686.rpm

4.2.3. list

yum list

列出已经安装的包

yum list installedyum list installed | wc -lyum list installed ntpyum list installed mysql\*
yum list updatesyum list extras

4.2.4. search

yum search mysql

4.2.5. update / upgrade

check update

[root@development ~]# yum check-update[root@development ~]# yum -y update

upgrade

# yum upgrade

4.2.6. remove

#yum remove httpd

4.2.7. installed

# yum list installed

4.2.8. group

4.2.8.1. grouplist

[root@localhost ~]#  yum grouplistLoaded plugins: fastestmirrorSetting up Group ProcessLoading mirror speeds from cached hostfile * addons: mirrors.163.com * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.comInstalled Groups:   Administration Tools   Development Libraries   Dialup Networking Support   Editors   Mail Server   Network Servers   Office/Productivity   Server Configuration Tools   System Tools   Text-based Internet   Web Server   Yum UtilitiesAvailable Groups:   Authoring and Publishing   Base   Beagle   Cluster Storage   Clustering   DNS Name Server   Development Tools   Emacs   Engineering and Scientific   FTP Server   FreeNX and NX   GNOME Desktop Environment   GNOME Software Development   Games and Entertainment   Graphical Internet   Graphics   Horde   Java   Java Development   KDE (K Desktop Environment)   KDE Software Development   KVM   Legacy Network Server   Legacy Software Development   Legacy Software Support   Mono   MySQL Database   News Server   OpenFabrics Enterprise Distribution   PostgreSQL Database   Printing Support   Ruby   Sound and Video   Tomboy   Virtualization   Windows File Server   X Software Development   X Window System   XFCE-4.4Done

4.2.8.2. groupinfo

# yum groupinfo "Server Configuration Tools"Loaded plugins: fastestmirrorSetting up Group ProcessLoading mirror speeds from cached hostfile * addons: centos.ustc.edu.cn * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: centos.ustc.edu.cnGroup: Server Configuration Tools Description: This group contains all of CentOS's custom server configuration tools. Default Packages:   system-config-httpd   system-config-nfs   system-config-printer-gui   system-config-samba   system-config-securitylevel   system-config-services Optional Packages:   system-config-bind   system-config-boot   system-switch-mail-gnome

4.2.8.3. groupinstall

#yum groupinstall 'X Window System'  -y安装GNOME桌面环境#yum groupinstall  'GNOME Desktop Environment' -y安装KDE桌面环境#yum groupinstall 'KDE (K Desktop Environment)' -y

4.2.8.4. groupremove

卸载GNOME桌面环境#yum groupremove "GNOME Desktop Environment"卸载KDE桌面环境#yum groupremove "KDE (K Desktop Environment)"
yum groupremove "GNOME Desktop Environment" "Games and Entertainment" "Graphical Internet" "Graphics" "Office/Productivity" "Printing Support" "Sound and Video" "Web Server" "X Window System"

4.2.9. 查看包的依赖关系

# yum deplist libcurl

4.2.10. provides / whatprovides

查询pg_config命令在那一个包中

# yum provides "*/pg_config"
# yum provides "*/libpq-fe.h"
# yum whatprovides mysql_config

4.2.11. YUM 源管理

列出所有yum源

# yum repolist all

查看启用YUM源

# yum repolist enabled

查看禁用YUM源

# yum repolist disabled

禁用YUM源

# yum-config-manager --disable mysql-connectors-community

启用YUM源

sudo yum-config-manager --enable mysql57-community-dmr

或者修改/etc/yum.repos.d/文件也能实现相同的作用 enabled=0 为禁用 enabled=1启用

Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by
Disqus

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
TFS强制撤销某个工作区的文件签出记录
查看>>
编写who命令
查看>>
2.1 sikuli 中编程运行
查看>>
愚公移山第一章伪代码
查看>>
常见的位运算技巧总结(膜wys)
查看>>
python魔法函数(二)之__getitem__、__len__、__iter__
查看>>
EL表达式无法显示Model中的数据
查看>>
Linux应用小技巧
查看>>
考题纠错2
查看>>
ps6-工具的基础使用
查看>>
关于CefSharp.WinForms的学习
查看>>
灵活运用 SQL SERVER FOR XML PATH
查看>>
es 加磁盘扩容
查看>>
linux 参数内核
查看>>
使用Azcopy在Azure上进行HBase的冷热备份还原
查看>>
计组_定点数一位乘_布斯公式
查看>>
linux下使用过的命令总结(未整理完)
查看>>
ES6的一些文章
查看>>
LeetCode 198, 213 House Robber
查看>>
New Year Permutation(Floyd+并查集)
查看>>