Home > Operation and Maintenance > Linux Operation and Maintenance > Package update commands under CentOS system

Package update commands under CentOS system

angryTom
Release: 2019-10-24 17:30:12
Original
10389 people have browsed it

Package update commands under CentOS system

Commands for package update under CentOS system

Update and upgrade

yum update 全部更新
yum update package1 更新指定程序包package1
yum check-update 检查可更新的程序
yum upgrade package1 升级指定程序包package1
yum groupupdate group1 升级程序组group1
Copy after login

More commands

1. Installation

yum install 全部安装
yum install package1 安装指定的安装包package1
yum groupinsall group1 安装程序组group1
Copy after login

3. Search and display

yum info package1 显示安装包信息package1
yum list 显示所有已经安装和可以安装的程序包
yum list package1 显示指定程序包安装情况package1
yum groupinfo group1 显示程序组group1信息yum search string 根据关键字string查找安装包
Copy after login

4. Delete program

yum remove | erase package1 删除程序包package1
yum groupremove group1 删除程序组group1
yum deplist package1 查看程序package1依赖情况
Copy after login

5. Clear cache

yum clean packages 清除缓存目录下的软件包
yum clean headers 清除缓存目录下的 headers
yum clean oldheaders 清除缓存目录下旧的 headers
yum clean, yum clean all (= yum clean packages; yum clean oldheaders) 清除缓存目录下的软件包及旧的headers
Copy after login

6. Source operation

yum repolist/repolist all 列出所有源
yum -enablerepo=fedora-source install package1 从fedora-source源中安装包package1
Copy after login

7. Yum Shell

yum shll 进去yum的shell环境
Copy after login

Recommendation: [Linux video tutorial]

The above is the detailed content of Package update commands under CentOS system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template