Linux

[Linux] apt v. apt-get v. dpkg

mjk- 2024. 4. 17. 17:09

Useful tip) always use "man" to find the options:

man <command>

 

Package Management 

You might have used "apt install" or "apt update" to download files or update the versions. As you can assume, apt is the command to manage packages. Then what's the difference between the commands "dpkg"?

 

APT

  • apt stands for "advanced package manager"
  • high-level command-line interface
    • apt is a newer version of "apt-get"
    • apt shows prettier/cleaner results
    • apt-get has more options
  • unlike dpkg, apt downloads the dependencies needed to install a program - efficient!
  • apt-cache <opt> <package>: shows version/information of package
    • apt-cache search <package>
    • apt-cache show <package>
  • sudo apt install <package> -y : install package anyways as a root use

DPKG

  • stands for "debian package manager"
  • low-level packaging tool
  • install deb.files, not their dependencies
  • dpkg -i <-.deb>

Other CMDs

  • wget : download from respositories
  • pip: for python packages
  • git: for git files

 

'Linux' 카테고리의 다른 글

[Linux] Basic web commands  (0) 2024.04.25