1 Build LAN Yum Source (CENTOS7) 1.1 Yum Server install HTTP service based on HTTP1) Install HTTPYum Install httpd httpd-devel–y2) Start httpd serviceSystemctl Restart Httpd.serviceSetenforce 0 #关闭SELinuxSystemctl Stop Firewalld #临时停止防火墙1.2 Yum server build LAN Yum source1) Mount disc image fileMount/dev/cdrom/mnt2) Co
/addons/x86_64/repodata/repomd.xml does not exist and may be updated. The workaround is to find the available URLs to replace them, or to comment out the entire item in the corresponding. repo file . I use the latter here. For example, in Centos-base-163.repo, comment out the entire addon item
#[addons]
#name =centos-$releasever-addons-163.com
#mirrorlist =http:// mirrorlist.centos.org/?relea
database, where the file is mainly in XML format, describes a RPM package details, such as dependencies, including files, checksum code information.4. Modify Apache Default configurationVim/etc/httpd/conf/httpd.conf in the last join: Namevirtualhost *:805. Restart ApacheTwo ways (1) #/ETC/INIT.D/HTTPD Restart (2) # service httpd restartShown below:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/CB/wKioL1S824CTvkeiAASD-kykSGQ804.jpg "title=" 4.png " alt= "Wkiol1s824ctvkeiaasd-kyksg
Configure YUM in Linux and YUM in Linux
1. Create a mount directory
# Mkdir/mnt/iso
Mount the CD to the/mnt/iso directory # mount-o loop/dev/hdc/mnt/iso
2. Go to the/etc/yum. repos. d/directory # cd/etc/yum. repos. d/
Create a repo file # mkdir
Today, I ran into a machine equipped with Linux, so I thought we could solve the problem with the previous experience, but the magic found that a bunch of packages were not installed on the machine,The most deadly thing is that even the Package manager is not installed, this thought is FreeBSD, looked up only to discover is Redhat Linux Server 5.4,So began to install Yum, Google Search, found that seemingly similar situation is not many, but this is n
package is valid and safe. 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-ROM
# mount/dev/cdrom/mnt/cdrom/
2. Configure local Yum Source
# cd/etc/yum.repos.d/
# ls
You'll see four repo
stored in a file named Yum. in the conf configuration file, it is usually located in the/etc directory, which is the top priority of the entire Yum system. I checked this file in F7. Let's take a look:[Hanlong @ wh_eric F7 common documentation] $ sudo more/etc/yum. conf[Main]Cachedir =/var/Cache/yumKeepcache = 0Debuglevel = 2Logfile =/var/log/
site, or a local software pool, but it must contain the rpm header, the header contains various rpm package information, including descriptions, functions, provided files, dependencies, and so on. only by collecting and analyzing these headers can we automate the remaining tasks.1. all configuration information of yum is stored in a file named yum. in the conf configuration file, it is usually located in t
python-iniparse-0.3.1-2.1.el6.noarch.rpm rpm-ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm -- note that the next two install the rpm-ivh yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm together
Add yum
Switch path
cd /etc/yum.repos.d/
Download files
wget http://mirrors.163.com/.
is the basic professional quality of an operation and maintenance personnel.Cp/etc/yum.repos.d/centos-base.repo/centos-base.repo.bakDownload the file Centos-base.repo or Centos-base.repo file to the Ali or 163 mirror website.Ari Address: http://mirrors.aliyun.com/NetEase Mirror Station: http://mirrors.163.com/Select the appropriate Help file after you have found the CentOS system after entering the website. I found this repo file. Download to a local
1. mount an ISO file to a computer, such as Mount-o loop/rhel6.0/MNT.
2. copy the files in ISO to the directory where Yum needs to be created (CP)
3,
4. If the software source is on the network, you need to start the FTP service, service vsftpd restart, which is not required on the local machine;
5. Configure the repo File
Vim/etc/yum. Repos. d/rhel-beta.repo (
configurations. It is usually located in the files in the/etc/yum. repo. d directory.
The yum. conf file is generally located in the/etc directory, which generally only contains the configuration options of the main part.
# Cat/etc/yum. conf
[Main] cachedir =/var/cache/yum
://bugs.centos.org/set_project.php?project_id=16ref=http://bugs.centos.org/bug_report_page.php?category=yum# Note:yum-rhn-plugin doesn ' t honor this.metadata_expire= 1hinstallonly_limit = AA PUT YOUR REPOS here OR in separate files named file.repo# IN/ETC/YUM.REPOS.DIn addition to the above, there are some options that you can add, such as:exclude=selinux*//Exclude some software in the upgrade list, you can use wildcards, the list of items to be sepa
packages must be installed at the same time, otherwise they will depend on each other.
4. Update the repo File
MV/etc/yum. Repos. d/rhel-debuginfo.repo/etc/yum. Repos. d/rhel-debuginfo.repo.repo.bakThis file may not exist here. It does not matter. If there is no such file, it cannot be executed.
VI/etc/yum. Repos. d/r
Package Warehouse:
RPM–IVH Http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
3, install the fastest source yum install Yum-fastestmirror
Resources are really very rich, from CentOS to Ubuntu,iso Mirror, upgrade package, everything, the brothers are really happy, envy ah. But fortunately, we are at least in the education network, make up can also touch a little light, download some.
Th
Linux distributions use package management commands such as Apt-get, dpkg, RPM, Yum,emerge, and so on. In this paper, the Yum tool is researched and collated.1. About Yum1.1 What ' s Yum
The Yum command is a RPM-based package manager in Fedora and Redhat as well as in SuSE.
It allows system administrator
-pubkey-e42d547b-3960bdf1 attachment: YUM is a tool for RedHat Linux to install updates and software online, but it is a paid feature of RHEL5. if you cannot use the RHEL5 update source when you do not buy the Redhat service, you will be prompted to register it. Since CentOS is a free Linux version evolved from RedHat, you can use the CentOS yum update source to implement the RHEL5
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.