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