Comments on: 20 Practical Examples of RPM Commands in Linux https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 09 Apr 2024 11:04:06 +0000 hourly 1 By: tux https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/comment-page-1/#comment-2156897 Tue, 09 Apr 2024 11:04:06 +0000 http://www.tecmint.com/?p=1794#comment-2156897 In reply to Ravi Saive.

You can use “rpm2cpio | cpio -dium” to extract the content of an RPM to the current directory. The files are owned by the current user and most of the extracted binaries can be used by adding lib directories to LD_LIBRARY_PATH (export LD_LIBRARY_PATH=”${LD_LIBRARY_PATH}:${PWD}/usr/lib:${PWD}/usr/lib64“).

]]>
By: Muhammad Irfan https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/comment-page-1/#comment-1303024 Fri, 06 Dec 2019 21:07:08 +0000 http://www.tecmint.com/?p=1794#comment-1303024 I am learning so much with your website. Thanks a lot, I really appreciate it.

]]>
By: Ricky Tigg https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/comment-page-1/#comment-1048214 Sun, 14 Oct 2018 19:58:38 +0000 http://www.tecmint.com/?p=1794#comment-1048214 $ which rpmdb_verify

/usr/bin/which: no rpmdb_verify in (/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

RPMDB(8)
(…)
rpm {–initdb|–rebuilddb} [-v] [–dbpath DIRECTORY] [–root DIRECTORY]
(…)
Red Hat, Inc 29 June 2010

$ cat /etc/redhat-release

Fedora release 29 (Twenty Nine)
]]>
By: Ravi Saive https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/comment-page-1/#comment-993631 Fri, 18 May 2018 05:24:29 +0000 http://www.tecmint.com/?p=1794#comment-993631 In reply to Atul Chadha.

@Atul,

To rebuild corrupted RPM database, fir remove /var/lib/rpm/__db* files to avoid stale locks.

# cd /var/lib
# rm __db*

After that Rebuild RPM database using following commands.

# rpm --rebuilddb
# rpmdb_verify Packages
]]>
By: Atul Chadha https://www.tecmint.com/20-practical-examples-of-rpm-commands-in-linux/comment-page-1/#comment-993389 Thu, 17 May 2018 12:27:32 +0000 http://www.tecmint.com/?p=1794#comment-993389 How to rebuild corrupted RPM Database needs correction, the directory is /var/lib/rpm rather than /var/lib for removal of __db files

]]>