GNU/Linux >> LINUX-Kenntnisse >  >> Linux

So überprüfen Sie den Anbieter installierter RPM-Pakete in Linux

Dies ist eine kurze Anleitung zum Überprüfen des Anbieters der installierten RPMs auf einem System. In einigen Szenarien ist ein benutzerdefiniertes RPM-Paket möglicherweise nicht kompatibel oder wird auf dem spezifischen System oder der Umgebung nicht unterstützt. Dieser Beitrag hilft Ihnen, den Anbieter von RPM zu identifizieren, die entweder von Drittanbietern stammen oder nicht nativ für den Betriebssystemanbieter sind.

Lieferanteninformationen von RPMs auflisten

Um alle RPMs mit den Herstellerinformationen aufzulisten, verwenden Sie das –queryformat(–qf) Option.

# rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH} %{VENDOR}\n'

Beispielausgabe:

[root@geeklab ~]# rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH} %{VENDOR}\n'
python3-pyparted-3.11.0-13.el8.x86_64 CentOS
python3-gobject-base-3.28.3-1.el8.x86_64 CentOS
libvirt-daemon-driver-secret-4.5.0-42.module_el8.2.0+320+13f867d7.x86_64 CentOS
gnome-screenshot-3.26.0-3.el8.x86_64 CentOS
fontpackages-filesystem-1.44-22.el8.noarch CentOS
libevdev-1.8.0-1.el8.x86_64 CentOS
cronie-1.5.2-4.el8.x86_64 CentOS
lua-json-1.3.2-9.el8.noarch CentOS
mesa-libglapi-19.3.4-2.el8.x86_64 CentOS
baobab-3.28.0-4.el8.x86_64 CentOS
xkeyboard-config-2.28-1.el8.noarch CentOS
...

Drittanbieter- oder nicht-native Pakete auflisten

Führen Sie den folgenden Befehl aus, um alle Pakete aufzulisten, die nicht von CentOS bereitgestellt werden:

# rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH} %{VENDOR}\n" | awk '{if($2!="CentOS") print$0;}'

Beispielausgabe von einem CentOS 8-Server:

[root@geeklab ~]# rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH} %{VENDOR}\n" | awk '{if($2!="CentOS") print$0;}'
gpg-pubkey-8483c65d-5ccc5b19-(none) (none)
amazon-ssm-agent-2.3.1644.0-1-x86_64 Amazon.com
gpg-pubkey-6963f07f-57fad2ec-(none) (none)

Weitere Informationen

Wenn Sie mehr über das spezifische RPM-Paket erfahren möchten, könnte es hilfreich sein, die Paketinformationen zu überprüfen:

1. Abfrage der installierten RPM

# rpm -qi [rpm_name]

Zum Beispiel:

# rpm -qi tree
Name        : tree
Version     : 1.7.0
Release     : 15.el8
Architecture: x86_64
Install Date: Thu 27 Aug 2020 05:24:23 PM UTC
Group       : Unspecified
Size        : 111603
License     : GPLv2+
Signature   : RSA/SHA256, Tue 02 Jul 2019 01:53:45 AM UTC, Key ID 05b555b38483c65d
Source RPM  : tree-1.7.0-15.el8.src.rpm
Build Date  : Sat 11 May 2019 03:54:52 PM UTC
Build Host  : x86-01.mbox.centos.org
Relocations : (not relocatable)
Packager    : CentOS Buildsys 
Vendor      : CentOS
URL         : http://mama.indstate.edu/users/ice/tree/
Summary     : File system tree viewer
Description :
The tree utility recursively displays the contents of directories in a
tree-like format.  Tree is basically a UNIX port of the DOS tree
utility.

2. ein Paket abfragen, das am angegebenen Ort existiert:

# rpm -qpi [rpm_with_absolute_path]

Zum Beispiel:

# rpm -qpi /tmp/telnet-0.17-73.el8_1.1.x86_64.rpm
Name        : telnet
Epoch       : 1
Version     : 0.17
Release     : 73.el8_1.1
Architecture: x86_64
Install Date: (not installed)
Group       : Applications/Internet
Size        : 156776
License     : BSD
Signature   : RSA/SHA256, Mon 13 Apr 2020 06:13:23 PM UTC, Key ID 05b555b38483c65d
Source RPM  : telnet-0.17-73.el8_1.1.src.rpm
Build Date  : Mon 13 Apr 2020 05:58:20 PM UTC
Build Host  : x86-01.mbox.centos.org
Relocations : (not relocatable)
Packager    : CentOS Buildsys 
Vendor      : CentOS
URL         : http://web.archive.org/web/20070819111735/www.hcs.harvard.edu/~dholland/computers/old-netkit.html
Summary     : The client program for the Telnet remote login protocol
Description :
Telnet is a popular protocol for logging into remote systems over the
Internet. The package provides a command line Telnet client


Linux
  1. So installieren Sie den Chrome-Browser unter CentOS Linux 7

  2. So listen Sie installierte Pakete aus einem bestimmten Repository in Linux auf

  3. So listen Sie alle installierten Pakete in Linux auf

  4. So überprüfen Sie die CentOS-Version

  5. So überprüfen Sie das Änderungsprotokoll von RPM-Paketen auf CentOS/RHEL

So installieren Sie RPM-Dateien (Pakete) unter CentOS Linux

So listen Sie installierte Pakete sortiert nach Installationsdatum in Linux auf

So listen Sie installierte Pakete in Linux auf

So überprüfen Sie, ob die GUI in Linux über die Befehlszeile installiert ist

So installieren Sie RPM-Pakete unter CentOS 8

So listen Sie installierte Pakete in Linux mithilfe der Paketverwaltung auf