FedoraThis 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.
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.
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!
"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'.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.