1. Yum Concept:
Package Manager Front-end tool: Yum (Yellowdog Update Modifier)
Yum: can automatically resolve dependencies, which solves the problem that the RPM Package Manager cannot resolve dependencies.
2. Yum's Repository (warehouse):
A, each RPM package
B, dependencies, package installation can generate file list and other metadata files.
3. Yum Client:
A, through the configuration file, specify a available yum warehouse.
B, cache the data, Yum will fetch the data to an available Yum repository and cache it locally.
such as: [Sohu_fedora_server]
Name=fedora Server CentOS 6.4
baseurl=http://mirrors.sohu.com/fedora-epel/6server/x86_64/
Enabled=1
Gpgcheck=0
4. Yum Warehouse configuration:/etc/yum.conf/etc/yum.repos.d/*.repo
A, this configuration file has two segments: [Main]: Main configuration segment and [Repo]: Warehouse configuration segment
B, configuration repo:
[REPO_ID]
Name=string
Access path to the Baseurl= warehouse
ENABLED={1|0} whether to enable its warehouse, enabled by default
GPGCHECK={1|0} Check package source legitimacy and integrity, enabled by default
gpgkey= Public key file, when gpgcheck=1 is valid; You can specify a local key, or you can specify a server path
Cost= defines the cost of this warehouse, defaults to 1000, specifies priority, and small priority.
Such as:
[Base_local]
name=centos6.4 x86_64 Release ISO file
baseurl=file:///media/mirros/
Enabled=1
Gpgcheck=1
Gpgkey=file:///media/mirros/rpm-gpg-key-centos-6
Note that in addition, the following two fedora sources are available, and the RPM packages required for CentOS can be found.
[Sohu_fedora_server]
Name=fedora Server CentOS 6.4
baseurl=http://mirrors.sohu.com/fedora-epel/6server/x86_64/
Enabled=1
Gpgcheck=0
[Sohu_fedora_client]
Name=fedora Client CentOS 6.4
baseurl=http://mirrors.sohu.com/fedora-epel/6/x86_64/
Enabled=1
Gpgcheck=0
5, #uname-A: View all information for the current system version.
6. Yum [Options] COMMAND:
Options
-Y: Direct execution without confirmation. #yum-y intall zsh, install zsh package directly
COMMAND:
Install package_name ...: installs the specified package.
Erase package_name: Uninstalls the specified package, and note that packages that depend on this package are unloaded.
Repolist [all|enabled|disabled]: All available configurations are displayed by default Yum repo
Clean [All|packages|metadata|expire-cache|rpmdb|plugins]: empties the cached data.
list [all, including installed and installable, default to all|installed installed |available installable]: Show all RPM packages
Info package_name: Displays the RPM package information. such as #rpm info zsh
Reintall package_name ... : Reinstall the specified package.
Check-update: Check for upgradeable packages.
Update package_name ...: Upgrade the specified package.
Note: Now the version is x-1.2.1, but later version x-1.2.2 and x-1.2.3, just want to update to x-1.2.2 how to deal with?
To upgrade to the specified version #yum update x-1.2.2
Downgrade Package_name: Downgrade.
Provides/path/to/some_file: Query which installation package was generated for a file: #yum provides/etc/passwd
Grouplist: Lists all the package groups,
GroupInfo "Package_group_name": Displays package group information.
Three development-related package groups:
Desktop Platform Development
Server Platform Development
Development Tools
Groupinstall "Group_name": Installs the specified package group. #yum-y Groupinstall "Desktop Platform Development"
Groupremove "group_name": Uninstalls the specified package group. #yum groupremove "Desktop Platform Development"
Install the local pack with Yum: (Manually disable check source and integrity:--nogpgcheck)
such as #yum--nogpgcheck install/tmp/zsh-2.3.1-2-el6.x86_64.rpm
The Yum of Linux software Management