Install the yum tool in Red Hat Linux on the VM

Source: Internet
Author: User
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

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.