Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-19-2004, 07:33 PM
|
#1
|
Member
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125
Rep:
|
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!
|
|
|
08-19-2004, 07:44 PM
|
#2
|
Member
Registered: Jul 2003
Location: Canada
Posts: 214
Rep:
|
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.
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.
|
04-07-2011, 02:36 PM
|
#3
|
LQ Newbie
Registered: Apr 2011
Location: santa clara
Posts: 6
Rep:
|
updates kernel as well?
Does this command updates to latest kernel as well? I want to update my ubuntu to latest kernel.
|
|
|
04-07-2011, 03:34 PM
|
#4
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Arodef
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.
|
04-07-2011, 03:36 PM
|
#5
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
Just realized this thread is from 8 years ago...
|
|
1 members found this post helpful.
|
04-07-2011, 04:38 PM
|
#6
|
LQ Newbie
Registered: Apr 2011
Location: santa clara
Posts: 6
Rep:
|
I understand what you saying. It updates to latest kernel of current OS version loaded. Thanks you
|
|
|
10-27-2011, 04:48 AM
|
#7
|
LQ Newbie
Registered: Jan 2011
Posts: 2
Rep:
|
I think "apt-get dist-upgrade" is equal to synaptic 'smart upgrade' option.
|
|
|
10-29-2011, 07:13 PM
|
#8
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,792
|
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:"
|
|
|
03-07-2012, 05:19 AM
|
#9
|
LQ Newbie
Registered: Mar 2012
Posts: 4
Rep: 
|
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 
|
|
|
06-15-2012, 01:33 PM
|
#10
|
Member
Registered: Feb 2010
Distribution: BunsenLabs (Debian Stable)
Posts: 132
Rep: 
|
Quote:
Originally Posted by chuckyanutsup
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. 
|
|
|
All times are GMT -5. The time now is 09:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|