yum
In Fedora and RedHat and SUSE based rpm package manager that enables system administrators interact with finer and automated management RPM packages can be automatically downloaded from the server specified RPM package and install dependencies are automatically handled relations, and install all of the software packages rely on, again and again without cumbersome to download, install
-
yum provides search, install, remove one, or all of a set of packages command
Profiles
/etc/yum.conf: providing a common configuration for all warehouse
/etc/yum.repos.d/*.repo: providing configured to point to the warehouse
yum source
- Ali cloud repo file
http://mirrors.aliyun.com/repo/- CentOS yum source systems
Ali cloud: https://mirrors.aliyun.com/centos/$releasever/os/x86_64/
Tsinghua University: https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os / x86_64 /- EPEL yum source of
Ali cloud: https://mirrors.aliyun.com/epel/$releasever/x86_64
Alibaba open source software
https://opsx.alibaba.com/
Options
-h: displays help information;
-y: all questions are answered "yes";
-c: specify the configuration file;
-q: Quiet mode;
-v: verbose mode;
-d: set debug level (0-10) ;
-e: setting error level (0-10);
-R & lt: a command setting process yum maximum latency;
-C: run entirely from the cache, rather than to download or update any headers
parameter
install: install rpm package;
Update: update rpm package;
the Check-Update: Check for update rpm packages are available;
the Remove: delete the specified rpm package;
List: Displays information packages;
Search: checking package information;
info: displays the specified rpm package descriptions and summary information;
Clean: yum clean up expired cache;
shell: the shell prompt, enter yum;
resolvedep: display rpm package dependencies;
localinstall: local installation rpm package;
localupdate: display local rpm package update;
deplist: show all dependencies rpm package
Examples
Some common commands include:
- Automatically search for the fastest mirror plug-ins: yum install yum-fastestmirror
- Yum install a graphical widget: yum install yumex
- View a list of possible mass installation: yum grouplist
- Installation
yum install # fully installed
yum install package1 # specified installation package installed Package1
yum groupinsall Setup group group1 group1 #- Updates and upgrades
yum update # total update
yum update package1 # update package package1 specified
program yum check-update # Check updatable
yum upgrade package1 # upgrade the specified package package1
yum groupupdate upgrade program from group1 group1 #- Find and display
yum info package1 # display the installation package information Package1
yum List # display all installed and can install the package
yum list package1 # Display the package installation Package1
yum GROUPINFO group1 # display program group group1 information yum search string based on key Find a word string installation package- Remove Programs
yum remove | erase package1 # remove packages package1
yum groupremove # Remove Programs group group1 group1
yum deplist package1 # viewer package1 rely case- Clear the cache
yum clean packages # purge packages in the cache directory
headers under the yum clean headers # Clear the cache directory
yum clean oldheaders # Clear the cache directory under the old headers