How to Use apt to Maintain Red Hat Enterprise Linux (RHEL)

Source: Internet
Author: User
Http://blog.itpub.net/post/8/124


By fenng.

How to Use apt to Maintain Red Hat Enterprise Linux (RHEL) is a little surprising for pirated users and friends who use RHEL for testing.

The dependency between software packages is a headache for administrators in Linux system maintenance. It is often because you want to install software A. However, when compiling, it tells you that software B is required before software X is installed, when you install the y software, you may be notified of the need for the Z library... many of my friends may have had this experience. in fact, the open-source community has already tried to solve this problem. Different releases release their respective tools, such as Yum of Yellow Dog and APT (Advanced Packaging tool) of Debian. these software is also gradually transplanted to other releases. after a period of comparison, fenng felt that using apt to maintain RHEL had special convenience.

Install.
First, let's install the apt tool:

# Wget http://redhat.uni-klu.ac.at/el3/apt.i386.rpm
# Rpm-uvh apt. i386.rpm

(Some friends may say that Yum is good, too. Yes, yum is good in many cases. However, if Linux is RHEL, it is difficult to find a database suitable for yum, "It's hard to make it easier ".)

Edit:
# Vi/etc/APT/sources. List. d/Dag. List

Add the following content:
Rpm http://redhat.uni-klu.ac.at RedHat/DAG/EL3/i386 Dag
Rpm-Src http://redhat.uni-klu.ac.at RedHat/DAG/EL3/i386 Dag
Rpm http://apt.sw.be RedHat/EL3/en/i386 Dag
Rpm-Src http://apt.sw.be RedHat/EL3/en/i386 Dag

# Vi/etc/APT/sources. List. d/jpackage. List

(This step is optional) how to add the content:

Rpm http://redhat.uni-klu.ac.at RedHat/jpackage/redhat-es-3/i386 free devel
Rpm-Src http://redhat.uni-klu.ac.at RedHat/jpackage/redhat-es-3/i386 free devel
Rpm http://redhat.uni-klu.ac.at RedHat/jpackage/redhat-es-3/generic free devel
Rpm-Src http://redhat.uni-klu.ac.at RedHat/jpackage/redhat-es-3/generic free devel

# Vi/etc/APT/sources. List. d/KDE. List

(This step is optional) If you use Kde, consider how to add the following content:

Rpm http://apt.kde-redhat.org APT/Fedora/3.0 stable
Rpm http://apt.kde-redhat.org APT/Fedora/all stable.
Rpm http://apt.kde-redhat.org APT/KDE-RedHat/3.0 stable unstable
Rpm http://apt.kde-redhat.org APT/KDE-RedHat/All stable unstable

Of course, these contents have been verified by the author and are basically available. The list downloaded from some sites seems to be more or less problematic.
After:

# Apt-Get update
# Apt-Get upgrade

That's simple.
If you want to install a tool, such as iftop, you can:

# Apt-cache search iftop
# Apt-Get install iftop

APT automatically solves the dependency problem. It is very convenient.

Note that you need to import the signature of the corresponding database.

After you download the GPG key from the relevant site, import it:
Rpm -- import thekey_youdownload

If you have the patience to see this, you can find pirated users or use RHEL for testing.
You can upgrade it through this. Otherwise, RHEL's up2date always requires you to enter
Authentication information.

For more information about apt usage in other versions, see:

Http://dag.wieers.com/home-made/apt/FAQ.php#A
Http://www2.uni-klu.ac.at/support/Redhat
Http://linuxwiki.de/apt/RedHat#head-6c2a0b2b86e7d5e24d2a9896cd2a0fcb132188d5

Apt-HOWTO:
Http://www.debian.org/doc/manuals/apt-howto/index.en.html

Related Article

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.