linux software and configuration management YUM YUM source

yum ---> package manager
is a software package based on the RPM manager
can automatically download from the specified server RPM package and the mounting
can handle dependencies between software, one-time installation of all packages depending

yum yum source into a local source to the network source yum

yum

clean all ---> Clear the cache yum original
repolist ---> list the warehouse information
install software ---> install the
update ---> update (update a single software)
List Software ---> View software
list all - -> View all software
list installed ---> list the installed software
list available ---> list the installable software
reinstall software ---> reinstall
remove software ---> uninstall
info software ---> View software information
search software ---> Find software based on information software
whatprovides file ---> to find software that contains the file based on the file
groups list ---> list the software group
groups info ---> to view information about the software group's
groups install sfgroup ---> install software group
groups remove sfgroup ---> uninstall software group (only uninstall the software, do not uninstall dependent)
Note ---> yum use the command must be set up after the success of the yum source to function properly


Experiment specific operation
to install the software dhcp
linux software and configuration management YUM YUM source
reinstall dhcp software
linux software and configuration management YUM YUM source
update software dhcp
linux software and configuration management YUM YUM source
delete dhcp software
linux software and configuration management YUM YUM source

View software dhcp
linux software and configuration management YUM YUM source
View all software and filtering software lftp
linux software and configuration management YUM YUM source

Yum remove the original source cache
linux software and configuration management YUM YUM source
list information repository (yum source warehouse)
linux software and configuration management YUM YUM source

List installed software
linux software and configuration management YUM YUM source
list can install software
linux software and configuration management YUM YUM source
to view dhcp software information
linux software and configuration management YUM YUM source
software information to find relevant software
linux software and configuration management YUM YUM source
software to find this file based on the file that contains lftp
linux software and configuration management YUM YUM source
listed software group
linux software and configuration management YUM YUM source
View base software group
linux software and configuration management YUM YUM source

Installing the software group base
linux software and configuration management YUM YUM source
uninstall the software base
linux software and configuration management YUM YUM source

.


Local configuration yum source
1. Obtain a mirrored version of the system consistent with the present system

Local rhel7.3 download mirror
linux software and configuration management YUM YUM source
Note ---> rhel7.3 must download rhel7.3 Mirror

2. Mount the mirror
linux software and configuration management YUM YUM sourcelinux software and configuration management YUM YUM source
mounted successfully
linux software and configuration management YUM YUM source

3. Set a permanent mount
vim /etc/rc.d/rc.local
linux software and configuration management YUM YUM source
edit mounting information
linux software and configuration management YUM YUM source

chmod 755 /etc/rc.d/rc.local ---> this script will be executed automatically at system boot
linux software and configuration management YUM YUM source

4. The setting system installation source point

vim /etc/yum.repos.d/rhel7.3.repo> file name must end repo
linux software and configuration management YUM YUM sourcelinux software and configuration management YUM YUM sourcelinux software and configuration management YUM YUM source
Note ---> only have one default file in the directory take effect /etc/yum.repos.d/

linux software and configuration management YUM YUM source
[rhel7.3] ---> warehouse name
name = rhel7.3 ---> description of the software source
baseurl = file: ///rhel7.3---> Local Installation Source
gpgcheck = 0 ---> no detection gpgkey

Empty yum source cache
linux software and configuration management YUM YUM source
show has yum source confirms successful configuration
linux software and configuration management YUM YUM source
test:
enter the address in your browser:
Sign-in address test was successful
linux software and configuration management YUM YUM source
.


Shared source of deploying yum (http network share)

Httpd service must be turned on
1. httpd turn
linux software and configuration management YUM YUM source
off the firewall and disabling boot
linux software and configuration management YUM YUM source

2. The mount of
linux software and configuration management YUM YUM source
injection ---> httpd have default shared directory / var / www / html /
linux software and configuration management YUM YUM source
set permanently mounted
vim /etc/rc.d/rc.local

linux software and configuration management YUM YUM source
Mount edit information
linux software and configuration management YUM YUM source

chmod 755 /etc/rc.d/rc.local ---> this script will be executed automatically at system boot
linux software and configuration management YUM YUM source
3. Set the system installation source point

vim /etc/yum.repos.d/rhel7.3.repo> file name must end with repo
linux software and configuration management YUM YUM source
linux software and configuration management YUM YUM source

4. Test:
Enter the address in your browser:
login address the test is successful
http://172.25.254.31/rhel7.3 ---> This address is the network address of the source yum
linux software and configuration management YUM YUM source
install dhcp
linux software and configuration management YUM YUM source
no dependencies prompt, one-time installation

Guess you like

Origin blog.51cto.com/14190777/2424315