What Linux in yum that? How to configure? how to use?

 

yum, Yellow dog Updater Modified is short, originally developed by the yellow dog that releases developer Terra Soft, written in python, then still called yup (yellow dog updater), after Duke's Linux @ Duke development team to improve, had this name. yum aim is to automate the upgrade, install / remove rpm package, collect information about the rpm package, checks the dependencies and automatically prompts the user to resolve. The key point is to have a reliable yum repository, the name suggests, this is software repository, it can be http or ftp site, the software can also be a local pool, but must include the header rpm, header includes a variety rpm package information, including descriptions, features, documentation provided, dependence, etc. It is these header collected and analyzed in order to complete the remaining tasks automation. It can be automatically downloaded from the server specified RPM package and install, can be handled automatically dependencies and install all dependent packages, again without cumbersome download, install. Themselves can do yum server, the server itself can be done in accordance with yum CD image.

Yum server set up:
(1) local yum (not the Internet server)
first step: first mount the CD
Mount / dev / cdrom / Media /
echo "/ dev / cdrom / Media iso9660 Defaults 0 0" >> / etc / fstab achieve boot mount
the second step: the establishment of yum repository (for example with centos)
vim /etc/yum.repos.d/iso.repo (ISO is just get the name, but must end with repo)
[Centos]
name = CentOS
baseurl File =: /// Media /  
gpgcheck. 1 =
Enabled =. 1
gpgkey = File: /// etc / PKI / RPM-GPG / the RPM-the GPG. 6-KEY-the CentOS-
then save and exit
(if the system is here redhat5.x written file: /// media / Server /, is redhat6.x system file: /// media / Packages /)


Explanation of the parameters
#####
[Centos] (This is a logo, you can easily take, must be unique)
name = CentOS (this is a name, you can easily take, must be unique)
baseurl = File: /// Media / Server / (local path)  
Enabled =. 1 (as an open warehouse, the warehouse is 0 is off)
gpgcheck =. 1 (a public key value)
gpgkey = File: /// etc / PKI / RPM-GPG / the RPM-the GPG -KEY-CentOS-6 (file path detection value of the public key)
[] within the warehouse name
name is a description of the warehouse can be said is the name of
the location baseurl warehouse
enabled whether to enable the warehouse, only use 1 to 0 to disable
gpgcheck check whether GPG signatures (used to verify the packages to be installed is not REDHAT official)
storage address gpgcheck we need to import this signature with the following command. To use this feature
#####

After you set up yum, yum clean all first input

(2) yum external network (access to the Internet server )
Vim /etc/yum.repos.d/163.repo


[Base]
name = centos6
BaseURL = HTTP: //mirrors.163.com/centos/$releasever/os/$ basearch
gpgecheck = 1
gpgkey = HTTP: //mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
then save and exit


if the system is 5.x versions of redhat (baseurl = http: //mirrors.163. com / centos / 5 / os / $ basearch)
when installed outside the network yum can go to this site to see their own advanced
http://mirrors.163.com/

after building yum, yum clean all first input

Using yum

First, use yum to upgrade software, operating mostly yum must have superuser privileges, of course, you can use sudo.

Add remove software installed systems are common, yum equally up to the task, as long as the software is installed rpm. 
Installation command is, yum install xxx, yum will query the database, with or without this package, if there is, then check its dependent relationship conflict, if not rely on conflict, so best to download and install; if so, it will be given prompt asking whether you want to install dependence, or delete the conflicting package, you can judge for yourself. 
Delete command is, yum remove xxx, as with the installation, yum will query the database, gives tips to resolve dependencies. 

yum commonly used commands:
1.yum Update Check-inventory all software updates
2.yum update software to install all updates
3.yum -y install <package_name> install specific software
4.yum update <package_name> to update the specified software
5.yum list <package_name> without <package_name> list list of all installed software, plus a list of designated
6.yum -y remove <package_name> Remove software
7.yum search <package_name> Find software       
8. yum list installed lists all installed packages
9.yum list extras lists all installed packages but not within the Repository yum
10.yum info <package_name> without <package_name> 
11.yum provides <package_name> listed package file which provides
12.yum clean packages clear cache directory (/ var / cache / yum) in the package
13. yum clean all clear the cache directory (/ var / cache / yum) and the package under the old headers

Reference http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html

If opportunity doesn’t knock, build a door

yum, Yellow dog Updater Modified is short, originally developed by the yellow dog that releases developer Terra Soft, written in python, then still called yup (yellow dog updater), after Duke's Linux @ Duke development team to improve, had this name. yum aim is to automate the upgrade, install / remove rpm package, collect information about the rpm package, checks the dependencies and automatically prompts the user to resolve. The key point is to have a reliable yum repository, the name suggests, this is software repository, it can be http or ftp site, the software can also be a local pool, but must include the header rpm, header includes a variety rpm package information, including descriptions, features, documentation provided, dependence, etc. It is these header collected and analyzed in order to complete the remaining tasks automation. It can be automatically downloaded from the server specified RPM package and install, can be handled automatically dependencies and install all dependent packages, again without cumbersome download, install. Themselves can do yum server, the server itself can be done in accordance with yum CD image.

Yum server set up:
(1) local yum (not the Internet server)
first step: first mount the CD
Mount / dev / cdrom / Media /
echo "/ dev / cdrom / Media iso9660 Defaults 0 0" >> / etc / fstab achieve boot mount
the second step: the establishment of yum repository (for example with centos)
vim /etc/yum.repos.d/iso.repo (ISO is just get the name, but must end with repo)
[Centos]
name = CentOS
baseurl File =: /// Media /  
gpgcheck. 1 =
Enabled =. 1
gpgkey = File: /// etc / PKI / RPM-GPG / the RPM-the GPG. 6-KEY-the CentOS-
then save and exit
(if the system is here redhat5.x written file: /// media / Server /, is redhat6.x system file: /// media / Packages /)


Explanation of the parameters
#####
[Centos] (This is a logo, you can easily take, must be unique)
name = CentOS (this is a name, you can easily take, must be unique)
baseurl = File: /// Media / Server / (local path)  
Enabled =. 1 (as an open warehouse, the warehouse is 0 is off)
gpgcheck =. 1 (a public key value)
gpgkey = File: /// etc / PKI / RPM-GPG / the RPM-the GPG -KEY-CentOS-6 (file path detection value of the public key)
[] within the warehouse name
name is a description of the warehouse can be said is the name of
the location baseurl warehouse
enabled whether to enable the warehouse, only use 1 to 0 to disable
gpgcheck check whether GPG signatures (used to verify the packages to be installed is not REDHAT official)
storage address gpgcheck we need to import this signature with the following command. To use this feature
#####

After you set up yum, yum clean all first input

(2) yum external network (access to the Internet server )
Vim /etc/yum.repos.d/163.repo


[Base]
name = centos6
BaseURL = HTTP: //mirrors.163.com/centos/$releasever/os/$ basearch
gpgecheck = 1
gpgkey = HTTP: //mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
then save and exit


if the system is 5.x versions of redhat (baseurl = http: //mirrors.163. com / centos / 5 / os / $ basearch)
when installed outside the network yum can go to this site to see their own advanced
http://mirrors.163.com/

after building yum, yum clean all first input

Using yum

First, use yum to upgrade software, operating mostly yum must have superuser privileges, of course, you can use sudo.

Add remove software installed systems are common, yum equally up to the task, as long as the software is installed rpm. 
Installation command is, yum install xxx, yum will query the database, with or without this package, if there is, then check its dependent relationship conflict, if not rely on conflict, so best to download and install; if so, it will be given prompt asking whether you want to install dependence, or delete the conflicting package, you can judge for yourself. 
Delete command is, yum remove xxx, as with the installation, yum will query the database, gives tips to resolve dependencies. 

yum commonly used commands:
1.yum Update Check-inventory all software updates
2.yum update software to install all updates
3.yum -y install <package_name> install specific software
4.yum update <package_name> to update the specified software
5.yum list <package_name> without <package_name> list list of all installed software, plus a list of designated
6.yum -y remove <package_name> Remove software
7.yum search <package_name> Find software       
8. yum list installed lists all installed packages
9.yum list extras lists all installed packages but not within the Repository yum
10.yum info <package_name> without <package_name> 
11.yum provides <package_name> listed package file which provides
12.yum clean packages clear cache directory (/ var / cache / yum) in the package
13. yum clean all clear the cache directory (/ var / cache / yum) and the package under the old headers

Reference http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html

Guess you like

Origin www.cnblogs.com/Jeely/p/11355836.html