-key-centos-6#contrib-packages by Centos Users[Contrib]name=centos-$releasever-contribmirrorlist=http://mirrorlist.centos.org/?release= $releasever arch= $basearch repo=contrib#baseurl =http://mirror.centos.org/centos/$releasever/contrib/$basearch/Gpgcheck=1Enabled=0Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6#基本上就是将mirrorlist注释掉, then change the BaseURL's link address. [Centosplus] [Contrib] do not change, because Enabled=0, indicates that the
on the Internet generally provides similar instructions, such as DAG, which provides the rpm for installation. After the configuration, yum is configured, you can directly use the following command to execute system maintenance, such as dries, you can create a dries. repo file, content is
[Dries]
Name = Extra Fedora rpms dries-$ releasever-$ basearch
Base url = http://ftp.belnet.be/packages/dries.ulyssis.o
plug-inThis plugin is used to set the order in which Yum calls the software source. Because the official source of the software, are relatively stable and recommended to use. Therefore, the order of official sources is higher than the order of third-party sources. How to ensure this order, you need to install yum-priorities this plugin. Yum Install
operation:The client configuration file specifies how the corresponding server is accessed:FTP Ftp://server/path/to/repoHTTP Http://server/path/to/repoNFS Nfs://server/nfs_pathFile File:///path/to/repositoryThird, the configuration file:(1), configuration file contentsTo use the Yum Management application, first configure its available Yum repositories, which are saved in the configuration file:Master conf
information
Yum List displays all installed and installable packages
Yum list package1 displays the installation status of the specified package
Yum List Installed list all installed software packages
Yum list updates list all updatable software packages
Yum groupinfo group
.el6.x86_64[2 [email protected] ~]# uname-mx86_64[3 [email protected] ~]# cat/etc/redhat-releaseCentOS Release 6.6 (Final) 3, Yum Warehouse and HTTP site preparationNote: An HTTP environment is required to access the file. We can use the Lightweight Python module to perform in the site directory:Python-mSimplehttpserver80Depending on the package, we can adjust the/etc/ yum.conf file, change the value of Keepcache to 1 and then preserve the package cac
) repodata/: Only the path containing this directory as its subdirectory can be used as a Yum source;b) Repomd.xml: File save time stamp, user can determine whether the file in the current Yum repository is changed;c) primary.xm.gz: The name of each RPM package in the current Yum repository and its dependency on each other; it also contains each RPM to install th
companies and organizations. We can use these sources to find the software we need to install. To add a YUM source, CentOS VPS usually comes with some default YUM sources. you can view/etc/yum. repos. d/directory, 1 $ ls/etc/yum. repos. d/to view the default sources. Each *. repo
answer yes to all questions--assumeno answer No to all questions--versio N Show Yum version and exit--installroot=[path] Set install root--enablerepo=[repo] enable one or mor E repositories (wildcards allowed)--disablerepo=[repo] disable one or more repositories (wildcards allowed)-X [Pack
Age],--exclude=[package] Exclude package (s) by n
If you do not have a CD, you need to install the software package using the yum source of the common network.
In RedHat linux, yum software is installed by default. However, due to authentication activation, redhat cannot directly install some yum software. If we need to install the software directly under redhat, we only need to change the
/etc/yum. repos. d/remi. repo.
# Vi/etc/yum. repos. d/remi. repo
Add a line at the end of the file:
Priority = 1
Save and exit.
/Etc/yum. repos. d/epel. repo and/etc/yum. repos. d/epel-
What is a repo file?The repo file is a configuration file for the Yum source (software repository) in fedora, typically a repo file defines the details of one or more repositories, such as where we will download packages that need to be installed or upgraded, and the settings in the
Redhat default does not support the third-party Yum Source, requires a portal account, the following rhel5 and rhel6 to the CentOS sourceFirst, rhel5.5 x86_64 to CentOS's Yum sourceView the system's own Yum-related RPM packagesRpm-qa|grep YumDelete the system's own Yum-related packagesRpm-e--nodeps
. But fortunately, we are at least in the education network, make it can also touch a light, download some.The website is: ftp://ftp.sjtu.edu.cn/The repo of the corresponding Yum is[Updates]Name=fedora Updatesbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$basearch/Enabled=1Gpgcheck=0[Fedora]Name=fedora $releasever-$basearchbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$releasever/ever
. But fortunately, we are at least in the education network, make it can also touch a light, download some.The website is: ftp://ftp.sjtu.edu.cn/The repo of the corresponding Yum is[Updates]Name=fedora Updatesbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$basearch/Enabled=1Gpgcheck=0[Fedora]Name=fedora $releasever-$basearchbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$releasever/ever
are really happy, envy ah. But fortunately, we are at least in the education network, make it can also touch a light, download some.The website is: ftp://ftp.sjtu.edu.cn/The repo of the corresponding Yum is[Updates]Name=fedora Updatesbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$basearch/Enabled=1Gpgcheck=0[Fedora]Name=fedora $releasever-$basearchbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux
-fastestmirrorResources are really very rich, from CentOS to Ubuntu,iso image, upgrade package, everything, hand-handed brothers are really happy, envy ah. But fortunately, we are at least in the education network, make it can also touch a light, download some.The website is: ftp://ftp.sjtu.edu.cn/The repo of the corresponding Yum is[Updates]Name=fedora Updatesbaseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/upda
.
If you are using the official dvd iso, copy it to the system and mount it to create a yum Repository:
Shell command:
# Mkdir/mnt/DVD/
# Mount-o loop/root/rhel5.1-DVD. ISO/mnt/DVD
# Cd/mnt
# Createrepo.
CD ISO
If you are using multiple cd iso files, you must first copy them to the system, mount them, and create a yum repository.
Create several directories with several ISO files and mount the corresponding
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.