LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-04-2004, 05:18 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
What's the difference between apt-get upgrade and apt-get dist-upgrade?


From http://www.debian.org/doc/manuals/ap...pt-get.en.html

3.4 Upgrading packages
Package upgrades are a great success of the APT system. They can be achieved with a single command: apt-get upgrade. You can use this command to upgrade packages within the same distribution, as well as to upgrade to a new distribution, although for the latter the command apt-get dist-upgrade is preferred

What's the difference between "apt-get upgrade" and "apt-get dist-upgrade"?

Also, what is the difference between "upgrade packages within the same distribution" and "upgrade to a new distribution"? What is meant by same distribution and new distribution?

Thanks !
 
Old 04-04-2004, 05:24 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Distributions are the "version" of your Linux OS - eg RH9, Debian 3.0

An upgrade within the same distribution means to install up to date packages for the distribution, Distribution Upgrades upgrade your present distribution to whatever the current one is.
 
Old 04-04-2004, 08:26 AM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Would it be correct to say that it is redundent to use the "apt-get dist-upgrade" command if I've install Debian 3.0, since 3.0 is already the current version and there isn't any 3.1 or later version available?

Thanks !

Quote:
Originally posted by XavierP
Distributions are the "version" of your Linux OS - eg RH9, Debian 3.0

An upgrade within the same distribution means to install up to date packages for the distribution, Distribution Upgrades upgrade your present distribution to whatever the current one is.
 
Old 04-04-2004, 08:43 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
No, it wouldn't. Debian 3.0 is old, although the current release. The way Debian works is to have a release version, then testing and unstable versions. A dist-upgrade would bump you up to one of those.

Go to the Debian homepage and look up what you need to do to upgrade. BTW, despite the names, from what I've heard testing and unstable are both very stable.
 
Old 04-04-2004, 08:19 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
The way that packages leave incoming ---> experimental ---> unstable ---> testing is layed out on the Debian home site. Stable is the distribution when all the packages in testing are 'frozen' and no new ones are allowed to come into it. The release is made. If its stable its STABLE. You won't find a more stable GNU/Linux platform than Debian stable (you'd have to compare it with a FreeBSD release.

apt-get upgrade upgrades what you have on the system already but doesn't introduce new packages unless absolutely necessary.

apt-get dist-upgrade upgrades everything on your system and resolves any new dependancies as well, thus introducing more new stuff tou your system.

To get from stable to testing or unstable, you have to point your /etc/apt/sources.list to testing or unstable folders on your update mirrors instead of stable.

Hope this helped a bit. BTW, if you have a bit of time and you loke OS stuff, you might want to scour the Debian site. There's a lot of really neat stuff that's going on. Debian Hurd, Debian/NetBSD, etc. Cool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
some help with apt-get dist-upgrade MaTrIx709 Debian 2 09-10-2005 11:13 AM
must...try...apt-get dist-upgrade.... pld Fedora 2 03-29-2005 07:12 PM
apt-get dist-upgrade bosewicht Debian 5 10-24-2003 01:08 PM
apt-get dist-upgrade Culbert Debian 5 08-25-2003 11:16 PM


All times are GMT -5. The time now is 05:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration