Request RPM packages ("Redhat-like" GNU/Linux distribution)
A simple refresh of what can be done with rpm tool.
To begin, the -q option allow to select the RPM packages to request.
The -a option allow to select all (potentially with a pattern to match).
Name, pattern and even version can be specified for greatest precision in selection.
All those commands query installed packages.
Get the list of packages:
rpm -qa
Get the list of packages matching a specific pattern:
rpm -qa pattern
For instance for X libraries: rpm -qa lib*X*
General information about a package:
rpm -qi myPackageName[-myCompletePackageVersion]
For instance, for a specific kernel: rpm -qi kernel-2.6.20-1.2962.fc6
Get the list of files of a package:
rpm -ql myPackageName[-myCompletePackageVersion]
Get ChangeLog of a package:
rpm -q --changelog myPackageName[-myCompletePackageVersion]
Get the list of packages needed by another package:
rpm -qR myPackageName[-myCompletePackageVersion]
Get the list of what provides a package:
rpm -q --provides myPackageName[-myCompletePackageVersion]
Get the list of packages providing a specific functionality:
rpm -q --whatprovides functionalityName
For instance, for the perl functionality "Authen::SASL": rpm -q --whatprovides "perl(Authen::SASL)"
Get the package providing a specific file:
rpm -qf myFilePath*
*: the path can be relative to current directory or absolute
To get the general information of the package providing a specific file (under GNU/Bash) with only one command line:
rpm -qi $( rpm -q --file myFilePath )
sharing knowledge earned into design/development/technical delicate and/or difficult situations ...
Labels
Gnu/Linux
(95)
Administration
(83)
StorageHardware
(17)
Programming
(16)
WebBrowser
(15)
General
(11)
GNU/Bash
(7)
Solaris
(7)
Virtualization
(7)
C
(6)
Domotics
(6)
Musics
(5)
Raspberry
(5)
Desktop
(4)
Java
(4)
VersionControlSystems
(4)
ArtificialIntelligence
(2)
Optimization
(2)
multimedia
(2)
Arduino
(1)
Electronics
(1)
LTS
(1)
MacOS
(1)
Mechanics
(1)
Processing
(1)
Robotics
(1)
Ubuntu
(1)
Upgrade
(1)
ez-robot
(1)
No comments:
Post a Comment
Thank you for your visit, let's share your point of view: