Update?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Update?

Postby exmix on Wed Nov 14, 2012 4:44 am

Well I know running
[code]
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?
Image
exmix
Level 1
Level 1
 
Posts: 20
Joined: Thu Oct 04, 2012 1:09 pm

Linux Mint is funded by ads and donations.
 

Re: Update?

Postby xenopeek on Wed Nov 14, 2012 5:19 am

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 :wink: 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.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14990
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Update?

Postby usbtux on Wed Nov 14, 2012 7:22 am

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.
http://goo.gl/DXKgM LinuxMint tutorials.
Running LinuxMint 17 Cinnamon/KDE/XFCE
http://goo.gl/WFu0u Installing Mint - the screen cast videos.
linuxcounter #368850
Image
User avatar
usbtux
Level 5
Level 5
 
Posts: 969
Joined: Tue Dec 28, 2010 10:37 am

Re: Update?

Postby exmix on Thu Nov 15, 2012 4:08 am

Vincent Vermeulen 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 :wink: 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
Image
exmix
Level 1
Level 1
 
Posts: 20
Joined: Thu Oct 04, 2012 1:09 pm


Return to Newbie Questions

Who is online

Users browsing this forum: asigachev and 41 guests