Home > Operation and Maintenance > Linux Operation and Maintenance > Detailed explanation of Linux software management and building local source examples

Detailed explanation of Linux software management and building local source examples

零下一度
Release: 2017-06-25 10:04:32
Original
1955 people have browsed it

Build local CD source

1. Mount the local CD under /mnt, mount /dev/cdrom /mnt

2 , Create your own source file in the /etc/yum.repos.d/ directory. The file name is customized and must end with repo,

  

 3. At this time, put / Back up the original files under etc/yum.repos.d/ to another directory, and then use the local CD source

Build HTTP LAN source

 1. Mount the CD source, mount /dev/cdrom /mnt

 2. Copy all rpm packages under the CD to the http release directory, for example: cp -R /mnt/Packages/* /var/www/html/centos/

3. Use createrepo to create HTTP source information, createrepo centos/ If there is no command, install yum install -y create*

4. Create HTTP source information completed After that, just test it on another client machine.

 

 5. On another client, back up the files under /etc/yum.repos.d/ to another place, edit the file above, and then close Open /etc/resolv.conf (DNS), test in time

and attach widgets; Install third-party sources yum install -y epel-release

## Change to el7

The above is the detailed content of Detailed explanation of Linux software management and building local source examples. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template