Packages
RPM | YUM | DPKG | DESCRIPTION |
---|---|---|---|
rpm -q –changelog [package] | changelog | ||
rpm -U/-i –test [package].rpm | test before install | ||
rpm -qa –last | head | installation time of last packages | ||
rpm -ql [package] | dpkg -L [package] | file list installed by package | |
rpm -qf [file] | yum provides [file] | dpkg -S [file] | package name which is owner of file |
rpm -qi [package] | yum info [package] | dpkg -s [package] | info |
rpm -q [package] | dpkg-query -W [package] | package version | |
rpm -qa | yum list installed | dpkg –list | installed packages |
yum list [package] | available packages in repository (about 15000), or package version in repo | ||
rpm -q –whatrequires [package] | package needs | ||
rpm -q –provides [package] | search missing libs, files | ||
rpm -q –whatprovides libc.so.6 | yum list provides [shared_obj] | ||
yum whatprovides "\*bin/[file]" | search in which package is file | ||
yum whatprovides libpthread* | |||
yum list extras | unoficial repo packages list | ||
rpm -qR [pakiet] | yum deplist [pakiet] | dependency list | |
yum check-update | update check | ||
yum list updates | |||
rpm -qp –scripts [package].rpm | scripts check | ||
rpm -qlp [package].rpm | rpm content check | ||
yum -C | using cache | ||
yum search [string] | search by names, descriptions, summaries | ||
yum list [string]\* | search by [string] | ||
yum history | |||
yum-complete-transaction | complete transaction after power crash etc. | ||
yum-complete-transaction –cleanup-only | clean transaction without resume the aborted transactions | ||
yum clean all | remove all traces of the version from /var/cache/yum | ||
yum –releasever=[release_nr_to_sync] distro-sync | |||
yum –rebuilddb | rebuild rpm database, recreate database index |
yum history
yum history list | last 20 transactins |
yum history list all | all transactions |
yum history list [ID] | |
yum history info [ID] | all info about transaction |
yum history package-list [package_name] |
Action column
D | Downgrade | At least one package has been downgraded to an older version. |
E | Erase | At least one package has been removed. |
I | Install | At least one new package has been installed. |
O | Obsoleting | At least one package has been marked as obsolete. |
R | Reinstall | At least one package has been reinstalled. |
U | Update | At least one package has been updated to a newer version. |
Altered column
< | Before the transaction finished, the rpmdb database was changed outside Yum. |
> | After the transaction finished, the rpmdb database was changed outside Yum. |
* | The transaction failed to finish. |
# | The transaction finished successfully, but yum returned a non-zero exit code. |
E | The transaction finished successfully, but an error or a warning was displayed. |
P | The transaction finished successfully, but problems already existed in the rpmdb database. |
s | The transaction finished successfully, but the –skip-broken command line option was used and certain packages were skipped. |
Misc
rpmreaper | tool for removing packages and find dependencies |
---|---|
package-cleanup –orphans | unsupported packages |
yumdownloader [package] | get rpm package |
yumdownloader –source [package] | getsource package |
rpm2cpio [package].rpm | cpio -idv | unpack rpm2cpio |
rpm2cpio [package].rpm | cpio -t | what is inside rpm |
yum grouplist | zainstalowane i dostepne grupy |
yum groupinstall '[group]' | instalacja grupy |
yum groupinfo '[group]' | |
yum groupremove '[group]' | |
yum –downloadonly update | download only |
rpm –querytags | show all tags |
rpm -qa –queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | |
rpm -qa –queryformat "%{NAME}-%{VERSION}-%{RELEASE}\t%{INSTALLTIME:date}" | |
rpm -qa –queryformat "%-40{NAME}%-20{VERSION}%-20{RELEASE}%{INSTALLTIME:date}\n" |
Remarks
- For RPM repos main database is located in /var/lib/rpm, it is BerkleyDB.