Page 1 of 1
Update?
Posted: Wed Nov 14, 2012 4:44 am
by exmix
Well I know running
Code: Select all
Sudo apt-get update
[code]
Update your system and the software installed onto it but does it also update the repositories or is there a seperate command for that?
Re: Update?
Posted: Wed Nov 14, 2012 5:19 am
by xenopeek
Update doesn't update your system or the software installed on it. It updates the packages index files (downloads them from the repositories and caches them on your system). The upgrade command is what upgrades software installed on your system, from the information available in the packages index files.
For questions like these, just read the manpages. They were written for a reason you know
Here is an excerpt from "man apt-get", which answers your questions fully I think.
Code: Select all
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
Code: Select all
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
Re: Update?
Posted: Wed Nov 14, 2012 7:22 am
by usbtux
sudo apt-get update
sudo apt-get upgrade
Should be used in conjunction. - basically what update manager does. Although update manager does filter packages for a more stable - less lightly to "damage" your install.
Re: Update?
Posted: Thu Nov 15, 2012 4:08 am
by exmix
xenopeek wrote:Update doesn't update your system or the software installed on it. It updates the packages index files (downloads them from the repositories and caches them on your system). The upgrade command is what upgrades software installed on your system, from the information available in the packages index files.
For questions like these, just read the manpages. They were written for a reason you know
Here is an excerpt from "man apt-get", which answers your questions fully I think.
Code: Select all
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
Code: Select all
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
Well I usually do use the man command but I didn't even think to look for upgrade. Thanks.
Someone answered me on the XChat IRC but 2 minutes after I posted this. Haha