【工具】yum&rpm([tools] Yum & rpm)

一:yum基本命令

yum update: 更新软件源

yum install: 安装指定的软件

yum remove: 删除指定的软件

二:rpm基本命令

rpm -qa: 查看所有的rpm软件包

rpm -qf: 查看一个文件属于哪个软件包

rpm -qi: 查看软件包有哪些文件

三:yum全部命令

yum check: 检查rpmdb的问题

yum check-update: 检查可用的软件升级

yum clean: 移除缓存数据

yum deplist: 列出软件依赖

yum distribution-synchronization: 同步安装软件到最新可用的版本

yum downgrade: 下载安装软件包

yum erase: 移除软件包

yum fs: ?

yum fssnapshot: 查看镜像?

yum groups: ?

yum help: 查看帮助信息

yum history: 查看历史

yum info: 显示软件包详细信息

yum install: 安装软件

yum langavailable: 检查可用的语言包

yum langinfo: 查看语言包

yum langlist: 列出语言包

yum langremove: 移除语言包

yum list: 列出软件

yum load-transaction: ?

yum makecache: ?

yum provides: ?

yum reinstall: 重新安装软件包

yum repo-pkgs: ?

yum repolist: 查看软件源

yum search: 查找软件包

yum shell: 交互式模式

yum swap: 交换软件?

yum update: 升级软件

yum update-minimal: 类似于upgrade,但是只升级涉及系统的软件包

yum updateinfo: ?

yum upgrade: 升级软件包

yum version: 查看version

二:rpm

Query/Verify

-a: 查看所有软件包

-f: 查看软件包拥有的文件

-g: 查看软件组?

-p: 查看包文件?

Query(-q)

-c: 列出配置文件

-d: 列出所有文档

-L: 列出所有License文件

-l: 列出所有文件

-s: 显示列出文件的状态

Verify(-v)

Install/Upgrade/Erase

-i: 安装软件包

–reinstall: 卸载软件包

-U: 升级软件包

–test: 检测是否能够工作

–prefix=<dir>: 指定安装目录

–percent: 显示安装进度

————————

1: Yum basic commands

Update: update software source using yum

Yum install: install the specified software

Yum remove: remove the specified software

2: RPM basic command

RPM – QA: view all RPM packages

RPM – QF: check which package a file belongs to

RPM – Qi: check the files in the package

3: Yum all commands

Yum check: check for problems with rpmdb

Yum check update: check available software upgrades

Yum clean: remove cached data

Yum deplist: list software dependencies

Yum distribution synchronization: synchronously install software to the latest available version

Yum downgrade: Download and install the package

Yum erase: remove package

yum fs: ?

Yum fssnapshot: view image?

yum groups: ?

Yum help: view help information

Yum history: view history

Yum Info: show package details

Yum install: install software

Yum langavailable: check available language packs

Yum langinfo: view language packs

Yum langlist: list language packs

Yum langremove: remove language pack

Yum list: List Software

yum load-transaction: ?

yum makecache: ?

yum provides: ?

Yum reinstall: reinstall package

yum repo-pkgs: ?

Yum repolist: View software source

Yum search: find packages

Yum shell: interactive mode

Yum swap: exchange software?

Yum update: upgrade software

Yum update minimal: similar to upgrade, but only upgrade the packages involving the system

yum updateinfo: ?

Upgrade package using Yum or up2date

yum version: 查看version

2: RPM

Query/Verify

-a: View all packages

-f: View files owned by the package

-g: View software group?

-p: View package file?

Query(-q)

-c: List profiles

-d: List all documents

-50: List all license files

-l: List all files

-s: Displays the status of the listed files

Verify(-v)

Install/Upgrade/Erase

-i: Install package

–Reinstall: uninstall the package

-U: Upgrade package

–Test: check whether it works

–prefix=< dir>: Specify the installation directory

–Percent: displays the installation progress