Add APT Package management tool for Redhat operating system

Source: Internet
Author: User

First, Introduction

Redhat uses the RPM package management system, the RPM package management system has a powerful compiler installation function, but because of historical reasons, the RPM package management system has no internal definition of the dependencies between the software, resulting in the installation of RPM software often have an incomprehensible problem of software dependencies.

The Debian system is managed with software packages based on the APT (Advanced packaging Tool) tool that automatically resolves and installs dependent packages, so Debian Linux is considered the most manageable and upgraded system. Apt tools are also considered to be one of the best package management tools at the moment. To address the fatal problem of the Redhat package management system, Conectiva Linux ported the APT system to the Linux system using the RPM package management system, allowing the RPM software package system to utilize the automatic resolution of dependent relationships provided by apt tools. There are already a number of sites, such as Http://freshrpms.net, http://apt.unl.edu, and so on that offer the APT way to upgrade management packages for Redhat Linux, making Redhat also one of the distributions that can make use of apt tools, This article describes how to install and use the APT package management tool in Redhat Linux systems.

To get a general idea of the characteristics of apt tools, here are some examples of using APT with RPM management systems:

(1) Deleting a package automatically deletes related packages:

[Root@linux root]# apt-get Remove Nessus-common

2) Automatic Download installation Dependency pack:

[Root@linux root]# apt-get Install Nessus-server

(3) Maintenance system software, Automatic Update system:

[Root@linux root]# Apt-get Upgrade

Second, APT simple operation principle

Our machine is apt to be used as the user end of the apt kit. When we install, upgrade RPM, in fact, are through the network connected to the remote APT server to download the RPM back installed, APT server we can specify, and apt user can also become Apt Server (in the second section we will talk about the erection of apt server)

The apt-get update instruction synchronizes the RPM index list (package list) of the user side and apt server, and the RPM index list of the APT server is placed in the base folder (the base data folder is produced by the Genbasedir Directive), and the user-end meter The computer obtains the BZ2 RPM index list in the base folder to compress the file, will unzip it to place in the/var/state/apt/lists/, but when the user uses the Apt-get install or the apt-get dist-upgrade instruction, will this The data in the folder is comparable to the RPM database within the user's computer, so you can know that the RPM is installed, not installed, or upgradeable, so once the RPM in the APT server changes, be sure to use the Genbasedir command to generate a new RPM index list.

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.