How to maintain Red Hat Enterprise Linux (RHEL) with APT

xiaoxiao2021-03-06  98

http://blog.itpub.net/post/8/124

BY

Fenng

How to use APT maintenance Red Hat Enterprise Linux (rhl), pirated users and friends who use rhel will have a little surprise Linux system maintenance, the administrator is very headache is the dependence between the packages, often you To install A software, but when compiling, tell you that the X software is required to install B software, and when you install Y software, you may tell you that the Z library is needed ... Many friends have experienced this experience. In fact, open source Community has long tried to solve this problem, and different distributions release their respective tools, such as YELLOW DOG's Yum, Debian's APT (Advanced Packaging Tool). And these software have gradually transplanted to other releases. After a period of comparison, Fenng feels uses APT maintenance RHEL with special convenience.

Installation. First let us install the APT tool:

# wget http://redhat.uni-klu.ac.at/El3/apt.i386.rpm# rpm -uvh apt.i386.rpm

(Some friends may say, yum is not bad, yu, yum is really good, but if Linux is RHEL, it is difficult to find the database that suits YUM, "smart women are difficult to be miles".)

We want to edit: #vi /etc/apt/sources.list.d/dag.list

Add the following: rpm http://redhat.uni-klu.ac.at redhat / DAG / EL3 / I386 DAGRPM-SRC http://redhat.uni-klu.ac.at redhat / DAG / EL3 / I386 DAGRPM HTTP : //apt.sw.be redhat / EL3 / EN / I386 DAGRPM-SRC http://apt.sw.be redhat / EL3 / EN / I386 DAG

#vi /etc/apt/sources.list.d/jpackage.list (this step is optional) Add: rpm http://redhat.uni-klu.ac.at redhat / jpackage / redhat-es- 3 / i386 free devel.at.Uni-klu.ac.at redhat / jpackage / redhat-es-3 / i386 free develrpm http://redhat.uni-klu.ac.at redhat / jpackage / RedHat-ES-3 / generic free develrpm-src http://redhat.uni-klu.ac.at redhat / jpackage / redhat-es-3 / generic Free Develop

#vi /etc/apt/sources.list.d/kde.list (this step optional) If you use KDE, consider how to add: rpm http://apt.kde-redhat.org Apt / Fedora / 3.0 stablerpm http://apt.kde-redhat.org apt / fedora / all stablerpm http://apt.kde-redhat.org apt / kde-redhat / 3.0 stable unstere-redhat.org APT / KDE-Redhat / All Stable UnSoft

Of course, these contents are verified by the author and are basically available. List downloaded from some sites seem more to be less problematic. Later:

# APT-GET UPDATE # APT-GET UPGRADE

It is so simple. If you want to install a tool, for example, iftop, you can do this: # apt-cache search iftop # apt-get install ingtop

APT automatically resolves dependency issues. It is convenient.

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

After downloading the GPG Key in the relevant site, you can import: rpm - IMPORT Thekey_YOUDOWNLOAD

If you have patiently see here, you can find pirated users or friends who use RHEL to upgrade. Otherwise, RHEL's Up2date always wants you to enter authentication information.

Other versions of APT usage problems and some use skills, please refer to here:

Http://dag.wieers.com/home-made/apt/faq.php#ahttp://www2.uni-klu.ac.at/support/redhathtp://linuxwiki.de/APT/red Hat#head- 6C2A0B2B86E7D5E24D2A9896CD2A0FCB132188D5

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

转载请注明原文地址:https://www.9cbs.com/read-124084.html

New Post(0)