Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install RPM and DPKG in Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to install RPM and DPKG in Linux". The content in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install RPM and DPKG in Linux".

Two main streams of Linux: RPM and DPKG

Distribution represents the software management mechanism using instruction online upgrade mechanism (instruction) Red Hat/FedoraRPMrpm, rpmbuildYUM (yum) Debian/UbuntuDPKGdpkgAPT (apt-get)

What is RPM and SRPM

RPM installation (install)

[root@study] # rpm-I / mnt/Packages/rp-pppoe-3.11-5.el7.x86_64.rpm

RPM upgrade and Update (upgrade/freshen)

It's so easy to use RPM to upgrade! You can upgrade with-Uvh or-Fvh, and the options and parameters available for-Uvh and-Fvh are the same as install. However, the meaning of-U and-F is not quite the same, the basic difference is like this:-Uvh the following software will be installed directly even if it has not been installed; if the following software has been installed with an old version, the system will automatically update to the new version;-Fvh if the following software is not installed on your Linux system, the software will not be installed In other words, only the software installed in your Linux system will be "upgraded"!

RPM query (query)

Rpm-qa

RPM reverse installation and Reconstruction of Database (erase/rebuilddb)

The removal option is simple and can be removed by-e. However, it is common for software attributes to depend on each other so that some software can not be removed! Let's use the following example to illustrate:

# 1\. Find out the name of the software related to pam And try to remove the pam software: [root@study ~] # rpm-qa | grep pamfprintd-pam-0.5.0-4.0.el7_0.x86_64pam-1.1.8-12.el7.x86_64gnome-keyring-pam-3.8.2-10.el7.x86_64pam-devel-1.1.8-12.el7.x86_64pam_krb5-2.4.8-4.el7.x86_64 [root@study ~] # rpm-e pamerror: Failed dependencies:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report