apt to yum - Cheat sheet - Conversion

  • apt-get install
    • yum install
  • apt-get upgrade
    • yum upgrade
  • apt-get remove
    • yum remove
  • apt-get --reinstall install
    • yum reinstall
  • apt-get install foo=1.0 (to downgrade to version 1.0)
    • yum downgrade foo-1.0
  • apt-get clean
    • yum clean
  • apt-get build-dep
    • yum-builddep
  • dpkg -l
    • yum list installed
  • apt-cache search
    • yum search
  • apt-cache search --names-only
    • yum list
    • repoquery
  • dpkg -L
    • rpm -ql
  • apt-file list
    • repoquery -l
     
    Difficult - not commonly known conversions 
  • apt-cache show
    • yum info
    • repoquery -i
  • apt-get purge
    • yum remove
  • apt-get dist-upgrade
    • yum upgrade
    • yum distro-sync
  • apt-get source
    • yumdownloader --source
  • dpkg --get-selections
    • yum-debug-dump
  • dpkg --set-selections
    • yum-debug-restore
  • dpkg -S
    • repoquery --installed -f
    • rpm -qf
  • apt-file search
    • repoquery -f
    • yum provides
    • rpm -qf
  • apt-get --simulate upgrade
    • yum check-update
    • yum --assumeno upgrade
  • apt-get --simulate install
    • yum --assumeno install
  • sbuild
    • mock