Skip to content

karbiv/dnf_memo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Memo for the DNF software package manager(Fedora Linux, "Dandified Yum").

  • dnf allows only *, ?, [] globbing in query strings(exps).
  • apt-get may use POSIX regular exps.
Red Hat/Fedora Debian/Ubuntu Description
dnf install apt install Install packages
dnf remove apt remove Remove packages
dnf search apt search Search for packages by a word in name, description, etc
dnf upgrade apt update; apt upgrade Upgrade installed packages to newer versions
dnf distro-sync apt full-upgrade Upgrade packages with distro version upgrade
dnf clean all                                
{metadata,packages,dbcache,
expire-cache,all
}
apt-get clean /               
apt-get autoclean /
aptitude clean
Clean up all local caches. Autoclean deletes only obsolete info
dnf autoremove apt-get autoremove Remove dependencies that are no longer needed
dnf mark install apt-mark manual Mark or unmark installed packages as installed by user.
dnf install
dnf mark remove
aptitude install '$package&M' Install package(s) as dependency / without marking as explicitly required.
dnf download apt-get install --download-only
(into the package cache)
apt-get download
(bypass the package cache)
Download package to current directory
dnf history
[list|info|redo|undo
|rollback|userinstalled
]
cat /var/log/dpkg.log Show a log of actions taken by the software management.
dnf list, dnf info apt show /
apt-cache policy
Show all or most information about a package
aptitude purge '~o' Remove packages no longer included in any repositories.
dnf repoquery --extras List packages no longer included in any repositories.
dnf repoquery --whatrequires apt-cache rdepends /
aptitude search ~D$pattern
Display packages which require X to be installed, i.e. show reverse dependencies
dnf repoquery --conflicts aptitude search '~C$pattern' Display packages which conflict with given expression (often package)
dnf repoquery --requires apt-cache depends /
apt-cache show
Show dependencies
dnf repoquery -l apt-file list $pattern Display files provided by a remote/local package
dnf repoquery --installed dpkg -l List installed packages along with version
dnf provides dpkg -S / dlocate Search the package which provides FILE
dnf repoquery -f apt-file search Displays packages which provide the given exp
apt-get changelog Show the changelog of a package
dnf check-update apt-get upgrade -> n Lists packages which have an update available
dnf list available apt-cache dumpavail
apt-cache dump (Cache only)
apt-cache pkgnames
Display a list of all packages in all installation sources
dnf list installed                                   dpkg --list | grep ^i List of installed packages
dnf config-manager --add-repo add-apt-repository Add repository URL
dnf config-manager --set-disabled /
rm /etc/yum.repos.d/URL.repo
add-apt-repository -r Remove repository URL
dpkg-reconfigure Reconfigure installed package
... ... ...

Releases

No releases published

Packages

No packages published