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
Release date:Updated on:
Affected Systems:Baseurl yum 3.4.3Description:--------------------------------------------------------------------------------Bugtraq id: 65119CVE (CAN) ID: CVE-2014-0022
Yum is a package manager under Fedora and RedHat linux.
In Yum 3.4.3 and earlier versions, the installUpdates function of yum
= 1Obsoletes = 1Gpgcheck = 1Plugins = 1 # Replace with plugins = 0# Note: Yum-RHN-plugin doesn't honor this.Metadata_expire = 1 h# Default.# Installonly_limit = 3# Put your repos here or in separate files named file. Repo# In/etc/yum. Repos. d
3. Modify fastestmirror. conf
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHi
, each representing whether the GPG (GNU Private Guard) checksum is performed to determine the source of the RPM package is valid and secure. This option is valid for each repository if it is set in the [main] section. The default value is 0.
Iv. Configuring local Yum sources
1. Mount the System installation CD
# mount/dev/cdrom/mnt/cdrom/
2. Configure local Yum S
repository, support Yum to complete the installation or upgrade of the package locally, and if other dependent packages are needed, Yum will also need to start a file server client to the file server to download the required files. So we say Yum is the C/s architecture, it requires a file access server, complete the provision and installation management of the p
In Linux, how does one change the yum download location to local download ?, Yum local downloadLocation of the configuration file downloaded from yum
Cd/etc/yum. repos. d/
Change the file name to invalidate the file
Rename. repo. repo
Replace yum source and yum Source
1. Back up the original yum source to prevent restoration when an error occurs.
Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup
2. Go to the yum. repos. d direct
gpg-pubkey-e42d547b-3960bdf1
Delete key# Rpm e gpg-pubkey-e42d547b-3960bdf1
==== Set unofficial update sources ====
The following uses installing the rpmforge package as an example to add an unofficial update source.
-To http://dag.wieers.com/rpm/packages/rpmforge-release/Find software packages for rhel5/centos5-Download the software package for rhel5/centos5# Wget http://dag.wieers.com/rpm/packag... 6-1.el5.rf.i386.rpm# Rpm-IVH rpmforge-release-0.3.6-1.el5.rf.i386.rpm# Rpm -- import/etc/pki/
All know Redhat no charge, but its Yum service is to charge, do not want to pay for it to configure the Yum source of the good.First of all, bloggers have not used Redhat before, the first time with Yum pack when prompted what not registered, such as, Balaba a lot of, and then go online to check the relevant information.However, the most you see is to let the Red
Create your own YUM repository and your own YUM Repository
Link: http://blog.csdn.net/kongxx/article/details/43917065
Today, let's talk about how to release your own software, install and update the YUM source.
1. first, assume that our application is named helloworld (you can refer to simple RPM package creation to create two versions of helloworld installation
. Repos. d/directory. A source file with the suffix "Repo" is ready. The system itself has two files, both of which are foreign sources and are relatively slow. You can back them up and use the domestic sources for updates.
Differences between these sources
Use the update source of HKUST only: 2658 packages
Use freshrpms separately, which is 514 packages.
Separate rpmforge, Which is 4471 packets
If I use three sources (excluding rpmforge), there are 2
YUM software management, yum Software
YUM is an RPM front-end program designed to solve the RPM dependency problem, rather than manually installing all the software on which it depends. It uses the repository to save and manage RPM packages. The repository configuration files are saved in the/etc/yum. repos. d/director
options, each representing whether the GPG (GNU Private Guard) checksum is performed to determine the source of the RPM package is valid and secure. This option is valid for each repository if it is set in the [main] section. The default value is 0.Iv. Configuring local Yum sources1. Mount the System installation CD# mount/dev/cdrom/mnt/cdrom/2. Configure local Yum Source# cd/etc/yum.repos.d/# lsYou'll see
configuration file is/etc/yum.conf, which defines information such as the location of the Yum repository650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/29/wKiom1R6dNywPB41AAP0GvbJbwM169.jpg "title=" yum_1. PNG "alt=" wkiom1r6dnywpb41aap0gvbjbwm169.jpg "/>We can see that in the/etc/yum.repos.d/directory there are more than one of the Yum repositories, in fact the system comes with a
Configuration of Yum:[Email protected] ~]# Vim/etc/yum.repos.d/rhel7.repo[Rhel7-yum] #yum源名称, unique, to distinguish between different yum sourcesName=rhel7-source #对yum源描述信息Baseurl=file:///mnt #
1. Network Problems (1) set nameserver,/etc/resolv. conf nameserver 8.8.8.8(2) check whether the Network is available. If a virtual machine is used, set the network to the bridging mode instead of the NAT mode.Ping 8.8.8.8 (check whether the Ping is successful and whether packet loss occurs. If packet loss occurs, refer to Article 2nd .)(3) proxy. If there is a proxy, set the proxy information in/etc/yum. conf. Proxy = http: // ip: Port2. network Prob
. 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
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.