In simple terms, the yum tool is equivalent to what 360 software manager in Windows. Therefore, it is very convenient to install yum first and then install the software. Yum tool has many parameters for use, as follows: yuminstall software name 1 [software name 2] [...] yumupdate
In simple terms, the yum tool is equivalent to what 360 software manager in Windows. Therefore, it is very convenient to install yum first and then install the software.
The yum tool has many parameters available, as shown below:
Yum install software name 1 [software name 2] [...]
Yum update [software name 1] [software name 2] [...]
Yum check-update
Yum upgrade [software 1] [Software 2] [...]
Yum remove | erase software name 1 [software name 2] [...]
Yum list [...]
Yum info [...]
Yum provides | whatprovides feature1 [feature2] [...]
Yum clean [packages | headers | metadata | dbcache | all]
Yum makecache
Yum groupinstall software group 1 [software group 2] [...]
Yum groupupdate software group 1 [software group 2] [...]
Yum grouplist [hidden] [groupwildcard] [...]
Yum groupremove group1 [group2] [...]
Yum groupinfo software group name [...]
Yum search string 1 [String 2] [...]
Yum shell [file name]
Yum resolvedep dependency 1 [dependency 2] [...]
Yum localinstall rpm package 1 [rpm package 2] [...]
Yum localupdate rpm package 1 [rpm package 2] [...]
Yum reinstall Package 1 [package 2] [...]
Yum downgrade Package 1 [package 2] [...]
Yum deplist Package 1 [package 2] [...]
Yum repolist [all | enabled | disabled]
Yum help [command]
The above are all available parameters of yum. Automatic dependency analysis is one of its best features and the most convenient installation method.
First, mount the disc with a virtual machine, and then
Create a folder path
# Mkdir-p/media/repo/RedHat
# Cd/media/repo/Redhat
Attach the CD to this path
Redhat # mount/dev/cdrom/media/repo/Redhat
Redhat # cd ..
Repo # rpm-ivh/media/repo/Server/createrepo-0.4.11-3.e.15.noarch.rpm
Repo # vi/etc/yum. conf
.
.
.
# Gpgcheck = 0
Plagins = 1
[Local_cdrom]
Baseurl = file: // media/repo
Name = my local_cdrom
: X
Repo # createrepo-g/media/repo/Redhat/Server/repodata/repomd. xml.
Install Apache test:
Repo # yum install httpd *-y
Repo # cd/var/www/html
Html # vi index.html
Dfdfdfdf
Dfdf
: X
Html # yum install vsftpd *-y
Html # cd/etc/selinux
Selinux # vi/etc/selinux/config
SELINUX = disabled
Html # service httpd start
Html # service vsftpd start
Use a client to access ftp: // 192.168.1.1 http: // 192.168.1.1