is more convenient to add/remove/update the RPM package.
It can automatically solve the problem of dependency of packages.
It can facilitate the management of a large number of system update problems
2, yum characteristics
Multiple resource pools can be configured at the same time (Repository)
Concise configuration files (/etc/yum.conf,/etc/yum.repo.d/youname.repo)
automatically resolves the dependency problems encountered when adding or removing RPM packages
Easy to use
Maintain consistency wi
-$basearch-debugbaseurl=file:///yum/serverenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ rpm-gpg-key-redhat-release[rhel-vt]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///yum/ Vtenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release[rhel-cluster]name=red Hat Enterpris
;/etc/sudoers
If you do not enter the password of the current user at each input, you can set it as follows:
[Root @ eric pppoe] # echo "weihui ALL = (ALL) NOPSSWD: ALL">/etc/sudoers
After that, you can test whether the operation is successful:
[Weihui @ eric ~] $ More/etc/sudoers/Etc/sudoers: insufficient Permissions[Weihui @ eric ~] $ Sudo more/etc/sudoers# Sudoers allows particle users to run various commands# The root user, without needing the root password.......
We recommend that you do no
RHEL 6.0 directory/etc/yum. Repo. d /;Then run VI/etc/yum. Repo. d/CentOS-Base.repo; input: % S/$ releasever/6.0 /. Change the version to cent-6.0.(The URL path in the CentOS-Base.repo is not correct, please refer to the URL to check the correct), with the correct URL under rhe6.5. Import the key of centos 6.0Wget http://mirrors.163.com/centos/6/ OS /i386/RPM-GPG-KEY-CentOS-6Rpm -- import RPM-GPG-KEY-CentO
mirror system uses the connecting IP address of the client and the# update status of each mirror To pick mirrors that is updated to and# geographically close to the client. You should use this for CentOS updates# unless is manually picking other mirrors.## If the mirrorlist= does For your, as a fall back you can try the # remarked out Baseurl= line instead.##[base]name=centos-$releasever-basemirrorl ist=http://mirrorlist.centos.org/?release= $releasever arch= $basearch repo=os#baseurl=http://
interface is displayed.
Configure local yum SourceLocal. repo:
Free onHttp://linux.linuxidc.com/
Both the user name and password areWww.linuxidc.com
The specific download directory is in/July 6,/July 9/Linux install ArcGIS 10_01 install Linux Virtual Machine and yum source configuration
Download Method see http://www.linuxidc.com/Linux/2013-07/87684.htmReference resources: http://www.linuxidc.com/Linux/2014-04/99794.htm
Step 1: mount the image
Specify the Installation file image (for example
1. Fedora 14 Yum source Shanghai Jiaotong University
First, enter the terminal to open and enter the Su, password, and administrator permission;
Input VI/etc/yum. Repos. d/fedora-sjtu.repo, press ENTER
Copy the following content to the opened fedora-sjtu.repo again:
Fedora-ftp.sjtu.edu.cnName = fedora 14-i386Base url = http://ftp.sjtu.edu.cn/fedora/linux/releases/14/Fedora/i386/ OS/Enabled = 1Gpgcheck = 0Gpgkey = file: // etc/pki/rpm-GPG-key-FedoraEve
Document directory
RPM package update
Installation and deletion of RPM packages
Parameters related to Yum temporary storage (/var/Cache/Yum /)
Package list
RPM package information display (the info parameter is the same as the list)
Search for RPM packages
What is yum?
Yum = yellow dog Updater, modified
The main function is to conveniently Add/delete/update RPM packages.
It automatically solves the dependency problem of the package.
It facilitates management of a large number o
prompt wget command to find.b, increase the Epel installation sourceEPEL, extra Packages for Enterprise Linux, which has a lot of very common software in this repository and is designed specifically for Rhel, is a good addition to the Rhel standard Yum source and is completely free to use, maintained by the Fedora Project, So if you are using Rhel, or centos,scientific and other Rhel-system Linux, you can use Epel's Yum source with great ease.Download and install
Since the Yum online update for Rhel is chargeable, it cannot be used if not registered, that is, the software cannot be installed online. In this case, if the machine we are using is a rhel system, it will be cumbersome to mount the local CD-ROM each time the software is installed, and some of the software is old, in which case we can use the CentOS yum source to meet our needs.First, delete the original Rhel yumRpm-aq|grep Yum|xargs rpm-e--nodepsIi. Download the Yum installation package for Ce
the yum series package of the Centos system # su webuser # cd/home/webuser # mkdir centos to download the Centos upgrade package (Note: perform operations based on RedHat AS4 or RedHat AS5) redHat AS4: # wget http://centos.ustc.edu.cn/centos/4.7/os/ I386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm # wget http://centos.ustc.edu.cn/centos/4.7/os/ I386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm # wget http://centos.ustc.edu.cn/centos/4.7/os/ I386/CentOS/RPMS/python-urlgrabber-2.
1. Copy all centos Yum files, but actually only use base files.
[Root @ server yum. Repos. d] # lsCentOS-Base.repo CentOS-Debuginfo.repo. B CentOS-Media.repo. B server. Repo. B
2. Check the file and learn the following points:
Enabled = 0 do not enable this yum;
[Root @ server yum. Repos. d] # Cat CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and# Update Status of each mirror to pick mirrors that are updated to and# Geographically close to th
packageDistroverpkg = RedHat-release determine the Linux release information downloaded by yumTolerant = 1 indicates whether Yum is "tolerant" during compilation. If it is set to 1, yum ignores many errors.Exactarch = 1 is useful when yum is updated. It is used to determine whether to update the i686 software package on i386. If option 1 is selected, it is not updated (too many functions need to be set ).Time is also very troublesome)The obsoletes = 1 option is described in detail in Yum (8). I
/CENTOS/6 directory will be automatically generated Repodata directory, Repodata directory is a database, where the file is mainly in XML format, describes a RPM package details, such as dependencies, including files, checksum code information.Second, the client1. Create Yum client repo fileVim/etc/yum.repos.d/test.repoWith. Repo as the suffix, here the name is test.Add to:[Test]Name=yum TestBaseurl=http://xxx.xxx.xxx/centos/6Enabled=1Gpgcheck=1Gpgkey=http://xxx.xxx.xxx/centos/rpm-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.