Job One: RPM command
1) Mount the disc file to the/media directory
2) Enter the packages directory under the/media directory
3) View all RPM packages installed on the system
4) Check to see if the system is installing DHCP packages
5) Install the DHCP package
6) View information for DHCP packages
7) View all files included in the DHCP package
8) See which package generated the/bin/ls file
9) Uninstalling the DHCP package
Job Two: Yum command
1) Customizing the Yum repository: Createrepo
[Email protected] ~]# vim/etc/yum.conf
[Email protected] root]# Mkdir/rpm_bak
[email protected] root]# Yum install httpd*
[Email protected] root]# Mkdir/createrepo
[Email protected] root]# cp/rpm/*/createrepo/
[Email protected] root]# Createrepo/createrepo
2) Customizing the repo file
[[email protected] root] # CD/ETC/YUM.REPOS.D
[[email protected] root] # vim Httpd.repo
[Email protected] root]# Createrepo/createrepo
3) Install the HTTPD package using the Yum command
Yum Insta httpd
4) Uninstalling the HTTPD package: yum–y Remove software name
Yum-y Erase Remove
5) Install the component ' KDE desktop ' using yum: Yum–y Groupinstall Component Name
The first thing to do is to change the Yum repository in the changed Createrepo.repo file to CD drive mount
6) Master using Yum to remove components ' KDE Desktop ': Yum–y groupremove Component Name
7) Master purge Yum cache: Yum Clean all
8) Use Yum to find packages: Yum Search package Name
Job Three: Source installation python
1. To prevent errors during installation of Python3 and problems during compilation, install first before installing:
1)
# yum-y Install Sqlite-devel
2) Install the compilation tools and library files
# yum-y Install make zlib zlib-devel gcc-c++ libtool OpenSSL openssldevel
3. New Installation Road and decompression
[Email protected] ~]# mkdir-p/usr/local/python3
[Email protected] ~]# cd/usr/local/python3/
[[email protected] python3]# ls
Python-3.6.1.tgz
4.
LINUX,RMP and Yum commands