Linux software management build source, 2017 linux

Source: Internet
Author: User

Linux software management build source, 2017 linux

Build local disc Source

1. mount the local disk/mnt, and 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. Back up the existing files under/etc/yum. repos. d/to another directory to use the local disc source.

Build an http lan Source

1. mount the disc source, under mount/dev/cdrom/mnt

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

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

4. After the HTTP source information is created, test it on another client.

  

5. On another client, set/etc/yum. repos. d/. Back up the file to another place, edit the file, and close/etc/resolv. conf (DNS) for timely testing

Install the third-party source yum install-y epel-release.

Update cent6's new source rpm-Uvh http://repo.webtatic.com/yum/el6/latest.rpm (you need to download it online, now you can download php6 with the new source) if it is an update cent7 source change el6 to el7

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.