Install yum in RedHat

Source: Internet
Author: User
Tags gpg
Common installation and upgrade tools on Linux mainly include Yum and apt. Yum can better solve the dependency problem of RPM. We recommend that you use yum, for example, to install the lynx program on the server in the traditional installation method, you need to go to the Linux installation CD and find the RPM of the lynx software package to upload it to the server side, run rpm-IVH <File Name> to install and use Yum management. You only need to run Yum install Lynx to install Yum and automatically connect to the Linux update source on the Internet, download the latest version of the package for automatic installation if lynx has been installed, now you need to upgrade to the latest version, run Yum upgrade Lynx to complete the upgrade, you can see that Yum is very easy to use, most installation packages can be obtained from the network without the need to manually upload and install them on the standard Redhat Enterprise Linux. By default, yum is not installed and needs to be downloaded and installed separately. In addition, Redhat Enterprise Linux is a paid service provided by RedHat. However, since Redhat Enterprise Linux and centos are basically common, you can use centos sources to upgrade RedHat 1. first install Yum and related RPM packages. Note: This installation package is only available to the as4 system at [url] http://www.swsoft.com.cn/downloads/prima/tools/yum_foras4.tar.gz#/url].
Or [url] http://www.haoxm.net/tools/yum_foras4.tar.gz#/url] to download and decompress the yum package and upgrade the file rpm-IVH *. rpm 2. copy the extracted CentOS-Base.repo to/etc/yum. repos. d/note in the directory: This CentOS-Base.repo file is only available to the as4 System 3. run the following command to import the GPG key rpm -- import [url] example or rpm -- import [url] http://www.haoxm.net/tools/rpm-gpg-key-centos-4#/url]
Now you can start using yum. The main parameters of Yum include search/install/upgrade/remove. To install a software, such as installing the lynx character browser, You can execute Yum install lynx. Note: 1. Some packages cannot be upgraded when using yum. 2. if you use Yum to upgrade all systems, you will find that after the upgrade, the system version will change from RedHat to centos because the upgrade uses the free centos Yum source, therefore, it is best to select the execution ========================== as shown in the above figure. rpm -- import, an error is always prompted. Later, I found that no DNS is set for Redhat, and no network access is allowed. After the DNS is set, I will be OK again.

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.