LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-19-2004, 07:33 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 122

Rep: Reputation: 16
apt-get question: dist-upgrade vs upgrade


apt-get upgrade
This command installs the latest versions of any out-of-date packages on your system. It never installs a package that is not yet installed.

apt-get dist-upgrade
This command installs up-to-date version of packages, and may install additional packages.

-----------------------

So does this mean dist-upgrade installs packages not installed on the system? If so, are those packages absolutely necessary? I need to keep the OS size small since I need to be able to backup the system to a single restore CD. I only want currently installed packages to be updated and packages improving the reliablilty/stability of the OS to be installed. Which one should I use? Thanks!
 
Old 08-19-2004, 07:44 PM   #2
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
Hi,

From the man-page:

"upgrade is used to install the newest versions of all packages currently installed on the system
...
dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages"

Quote:
I only want currently installed packages to be updated and packages improving the reliablilty/stability of the OS to be installed.
Dist-upgrade will not go and install every package under the sun.

Quote:
Which one should I use?
Well, if you want to do a distro-upgrade, use dist-upgrade. For instance, moving from Debian -stable to Debian -testing. Dist-upgrade is a special upgrade that is used if you are fetching packages from a new location, which is specified in /etc/apt/sources.list

If you want to simply upgrade the packages you have installed for your current distro, use 'apt-get upgrade'.

I hope that clears up your confusion.
 
1 members found this post helpful.
Old 04-07-2011, 02:36 PM   #3
rika3
LQ Newbie
 
Registered: Apr 2011
Location: santa clara
Posts: 6

Rep: Reputation: 0
updates kernel as well?

Does this command updates to latest kernel as well? I want to update my ubuntu to latest kernel.
 
Old 04-07-2011, 03:34 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,357
Blog Entries: 2

Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
Quote:
Originally Posted by Arodef View Post
If so, are those packages absolutely necessary? I need to keep the OS size small since I need to be able to backup the system to a single restore CD. I only want currently installed packages to be updated and packages improving the reliablilty/stability of the OS to be installed.
This depends on how you configured your apt. If apt installs recommends by default, it may be that an newly installed package is only a recommendation and as such not absolutely necessary. If you configured apt to not install recommends (which you should, if you are concerned about the size of the install) then a newly install package will be a dependency. In that case it is absolutely necessary.

Quote:
Does this command updates to latest kernel as well? I want to update my ubuntu to latest kernel.
If you want to upgrade to the latest kernel you should use dist-upgrade. But keep in mind that you will only get the kernel delivered with the version of Ubuntu with bugfixes. For example, if you have 10.04 installed you will not get a kernel newer than 2.6.32, with 10.10 you will not get another kernel as 2.6.35, and so on.
 
1 members found this post helpful.
Old 04-07-2011, 03:36 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux
Posts: 2,762
Blog Entries: 1

Rep: Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871Reputation: 871
Just realized this thread is from 8 years ago...
 
1 members found this post helpful.
Old 04-07-2011, 04:38 PM   #6
rika3
LQ Newbie
 
Registered: Apr 2011
Location: santa clara
Posts: 6

Rep: Reputation: 0
Smile

I understand what you saying. It updates to latest kernel of current OS version loaded. Thanks you
 
Old 10-27-2011, 04:48 AM   #7
Ophidion
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
I think "apt-get dist-upgrade" is equal to synaptic 'smart upgrade' option.
 
Old 10-29-2011, 07:13 PM   #8
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,210

Rep: Reputation: 238Reputation: 238Reputation: 238
Just tried an
Code:
apt-get -s dist-upgrade
on my F16 installation to see what it wanted to upgrade to Rawhide. The kernel was among "The following NEW packages will be installed:"
 
Old 03-07-2012, 05:19 AM   #9
chuckyanutsup
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
It amazes me that people back in 2004 were asking the same questions I find myself asking now. Thanks for this thread, it's helped me understand a little more
 
Old 06-15-2012, 01:33 PM   #10
Sector11
Member
 
Registered: Feb 2010
Location: Buenos Aires, Argentina
Distribution: Debian SID & CrunchBang
Posts: 66

Rep: Reputation: Disabled
Quote:
Originally Posted by chuckyanutsup View Post
It amazes me that people back in 2004 were asking the same questions I find myself asking now. Thanks for this thread, it's helped me understand a little more
But back in 04 Linux was only something I had heard about in passing and was for those "hacker geeks".

Oh how little I knew with the OtherOS blanket over my eyes.
 
  


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 dist upgrade Lincthra Ubuntu 2 05-25-2005 01:57 AM
must...try...apt-get dist-upgrade.... pld Fedora 2 03-29-2005 07:12 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM
apt-get dist-upgrade HULLU Debian 1 03-26-2004 10:27 PM
apt-get dist-upgrade Toasti Linux - Newbie 1 03-28-2003 06:50 AM


All times are GMT -5. The time now is 05:39 AM.

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