Update -vs Upgrade
My normal procedure for using apt everyday is to just run the "update" command before I do anything but I really would like to know how this command differs from the #apt-get upgrade command.
Can someone please explain for me? Thanks! |
"update" updates the package list with any newly available packages from the mirrors and "upgrade" executes the actual upgrading of packages. That's it.
|
Taken from http://www.linuxnix.com/2011/02/diff...-commands.html
#apt-get update Is the command to update the source list, if you modify the source list or you want to make a sync refresh or added new ppa source then you should execute above command. Where as #apt-get upgrade Command will try to download all the packages which are having updates at apt server and then try to install them if you press “y”. This something like System upgrade to new packages. |
I commonly run
I don't have a good reason except that it seems to follow what Synaptic does: install the updates, clean up afterwards, and refresh the package list. The command for a version upgrade is apt-get dist-upgrade. |
Quote:
It should be: update upgrade autoclean Other wise you install the updates from yesterday or the last time you ran update. Of course your way will work you will just be a day behind. |
update just installs new versions of the packages on your system, taking dependencies into account of course.
upgrade moves your base system up to the most recent version of the distribution, doing whatever it takes to make it compliant. Unlike update, it will remove packages if necessary (including even "important" things like kde, gnome or xorg ). Since upgrade can lead to radical changes in your system, you should only use it when you need to bring your entire system up-to-date, generally after a major version release. For regular use, use update. |
Hi,
I think you may be confusing the difference between upgrade and dist-upgrade not update and upgrade. Quote:
Quote:
Quote:
Cheers, Evo2. |
Has anyone noticed that there is slightly over 6 years between the first 2 posts and then everything else?
|
Quote:
So for regular use do as 62chevy suggested. |
Quote:
I missed that but bring up a good point about being accurate in your posts. Same newbie could have read this and been misinformed. |
From man apt-get
Quote:
Quote:
Quote:
Quote:
|
Craigevil settled it once and for all, thanks craigevil.
|
Sorry. My mistake. :doh: Just a mental short-circuit there. I was thinking about how many people confuse the two upgrade options. Must've been tired.
update the repository list, then upgrade the packages. |
Quote:
|
Quote:
Yup and had it been left there all would have been fine. Some forums lock threads older than 6 months probable for this reason. |
All times are GMT -5. The time now is 07:53 AM. |