1

I am new to ubuntu and would like to know if apt-get update updates the list of installed as well as uninstalled but available packages from various repos?

  • sorry but didn't find the answer I was looking for. does available packages include the installed ones as well? – samhitha Feb 23 '17 at 6:12
  • Available packages are those available in the repositories. You could have installed packages from anywhere, and they may or may not be in the repos. – muru Feb 23 '17 at 6:13
1

Yes, apt-get updates your full list of packages available in your added repo not just the ones that are installed.

3

apt-get update just updates the list of available packages from the repositories configured in /etc/apt/source.list and /etc/apt/source.list.d.

It does not update any installed software packages, that's the job of apt-get upgrade.

  • I understand that actual updating of packages happen when you upgrade , but in the list that you mentioned during update, does available packages include the already installed ones as well? like updating refreshes this list to new versions( both available packages and installed ones) and upgrading/installing after updating actually installs these updated versions. – samhitha Feb 24 '17 at 4:04
  • @samhitha ,yes when you install new packages from repository ,/etc/apt/source.list update and include new packages,But if your new package is not installed from repository you should add it to /etc/apt/source.list.d . – ahmad Feb 25 '17 at 7:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.