Add APT software package management tools for the Redhat Operating System

Source: Internet
Author: User
Article Title: Add APT software package management tool for the Redhat operating system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I. Introduction

Redhat adopts the RPM software package management system. The RPM software package management system has powerful compilation and installation functions. However, due to historical reasons, the RPM software package management system has no internal definition of dependencies between software, this often causes incomprehensible software dependencies when installing RPM software.

Debian systems manage software packages based on the Advanced Packaging Tool, which can automatically solve and install dependent software packages. Therefore, debian linux is considered the easiest system to manage and upgrade, apt is also considered to be one of the best software package management tools at present. To solve the critical problem of the redhat package management system, Conectiva Linux transplanted the apt system to the Linux system using the rpm package management system, the RPM software package-based system can use the apt tool to automatically resolve dependency. At present, there are many sites that provide apt update management software packages for redhat linux, such as http://freshrpms.net, http://apt.unl.edu and so on, making redhat one of the releases that can use apt tool, this article describes how to install and use apt software package management tools in redhat linux.

For a general understanding of the features of the apt tool, the following describes several instances using the apt with rpm management system:

(1) When a software package is deleted, the related software package is automatically deleted:

[Root @ linux root] # apt-get remove nessus-common

2) automatically download and install the dependency package:

[Root @ linux root] # apt-get install nessus-server

(3) maintain system software and automatically update the system:

[Root @ linux root] # apt-get upgrade

Ii. Simple APT Operation Principle

After the APT kit is installed on our machine, it becomes the APT user end. When we install and upgrade the RPM, in fact, all are connected to a remote APT server through the network to download the RPM for installation. We can specify the APT server, APT users can also become APT servers at the same time (in section 2, we will talk about the setup of APT servers)

The apt-get update command synchronizes the RPM index list (package list) of the user and the APT server ), the RPM index list of the APT server is placed in the base folder (the base folder is generated by the genbasedir command). After the user computer obtains the bz2 RPM index list compressed file in the base folder, decompress the package to/var/state/apt/lists/. When you use the apt-get install or apt-get dist-upgrade command, the information in this folder will be compared with the RPM database in the user's computer, so that you can know that the RPM has been installed, not installed, or can be upgraded, so once the RPM in the APT server changes, you must remember to use the genbasedir command to generate a new RPM index list.

  3. Install apt with rpm and its graphic interface front-end synaptic

The following describes how to download and install apt with rpm.

Apt with rpm can be downloaded directly to the [url] http://freshrpms.net [/url], which currently provides redhat 6.2, 7. for software upgrade services of x and 8.0, the following are some common redhat versions of apt:

Http://ftp.freshrpms.net/pub/freshrpms/redhat/6.2/apt/apt-0.5.4cnc7-fr0.62.1.i386.rpm redhat 6.2

Http://ftp.freshrpms.net/pub/freshrpms/redhat/7.2/apt/apt-0.3.19cnc55-fr7.i386.rpm redhat 7.2

Http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/apt-0.5.4cnc9-fr0.1.rh73.i386.rpm redhat 7.3

Http://ftp.freshrpms.net/pub/freshrpms/redhat/8.0/apt/apt-0.5.4cnc9-fr1.i386.rpm redhat 8.0

Http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/apt-0.5.5cnc6-fr1.i386.rpm redhat 9.0

After downloading the file, run the rpm command to install the file:

[1] [2] [3] [4] Next page

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.