brief introduction
How to maintain Red Hat Enterprise Linux (RHEL) with APT (Advanced Packaging Tool), providing solutions to issues that cannot be upgraded to individual RHEL. Keywords: APT, Linux, upgrade, Red Hat Enterprise Linux, RHEL, YUM, RPM, dependency
A few preface
Linux system maintenance, the administrator is very headache is the dependence between the package. It is often what you want to install A software, but when you compile, tell you the X software installation needs B software, and when you install Y software And tell you that the z library is required - I don't easily install the Z library, I found that there is still a problem ... Maybe many friends have experienced this experience. In fact, open source communities have long been trying to solve this problem. Different issues have launched their own tools, such as YELLOW DOG's Yum, Debian's APT (Advanced Packaging Tool). These software are also gradually transplanted to other releases from open source software enthusiasts.
The upgrade of the Redhat Enterprise version is often brought to the administrator: The website download speed is too slow, not safe enough, of course, more people cannot update - copyright issues. After a period of comparison, I feel that the APT maintenance RHEL has special convenience. (Some friends may say, yum is also good! Yes, Yum is really good, but if Linux is RHEL, it is difficult to find the database that is suitable for Yum, "The smart woman is difficult to be mous rice".) Now introduce the specific method to everyone as a reference.
APT basic introduction
Debian GNU / Linux is the creation of the APT. The original intention is to use tools to solve the problem of software installation. The working principle is roughly: the user installs the APT client tool, finds the RPM package information on the repositories of the APT server, and analyzes the dependence between the package and then downloads and installed.
Installation and configuration
First let us install the APT tool:
# wget http://redhat.uni-klu.ac.at/El3/APT.I386.RPM
# rpm -uvh apt.i386.rpm
Installation is simple enough? We want to edit the configuration file:
#vi /etc/apt/sources.list.d/dag.list
Add the following (information related information):
RPM http://afs.caspur.it/ AFS / Italia / Project / Linux / Cern / SLC302 / I386 / APT OS Updates Extras
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
Note: The first http://afs.caspur.it/ of the database is almost the content of the redhat official site. It is still effective when writing this article. If you want to try to update Kernel, you can add kernel26 after the first one. If you need more Java related software, then:
#vi /etc/apt/sources.list.d/jpackage.list
(This step is optional) added as follows:
RPM http://redhat.uni-klu.ac.at redhat / jpackage / redhat-eS-3 / i386 free develrpm-src http://redhat.uni-klu.ac.at redhat / jpackage / redhat-es- 3 / i386 Free Develop
RPM http://redhat.uni-klu.ac.at redhat / jpackage / redhat-es-3 / generic Free Develop
RPM-SRC http://redhat.uni-klu.ac.at redhat / jpackage / redhat-es-3 / generic Free Develop
If you want to update the KDE (this is optional):
#vi /etc/apt/sources.list.d/kde.list
Consider how to add:
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 unsteable
RPM http://apt.kde-redhat.org apt / kde-redhat / all stable unsteable
Of course, these contents are verified by the author, all available. List downloaded from some sites seems to be less a little less.
Note: If you find the above database fail or something better database. Please notify me: dbanotes@gmail.com.
Introduction to use
Use relatively simple:
# APT-GET UPDATE
# APT-GET UPGRADE
# APT-GET CHECK // Check dependencies
# apt-get -f install // Solve dependence issues
If you want to install a tool, for example, iftop, you can do this:
# APT-Cache Search iftop
# APT-GET Install Iftop
APT automatically solves dependence issues and is very convenient.
Note that you need to import the signature of the corresponding database. After downloading the GPG Key in the relevant site, use the following command to 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.
Reference Information
Apt-HOWTO - http://www.debian.org/doc/manuals/apt-howto/index.en.html Other versions of APT usage problem and some use skills, please refer to here:
http://dag.wieers.com/home-made/apt/faq.php
http://www2.uni-klu.ac.at/support/redhat
http://linuxwiki.de/APT/redhat
This article author fenng, a US-raising company DBA