0

Being a new comer in Ubuntu environment, I am bit confused between the apt-get and apt-cache. Can anyone explain what is difference between apt-get and apt-cache. And when to use the apt-get and apt-cache?

Thanks in Advance!

DRV
  • 103
  • 2

1 Answers1

1

apt-cache is for queries, i.e. for searching packages and getting details like dependencies or versions.

apt-get is for, well getting it, installing, package management in general.

The tasks of apt-get and apt-cache are nowadays handled by apt (via e.g. apt install and apt search).

Check them man entries of either for more details.

FelixJN
  • 2,358