LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-10-2006, 06:28 PM   #1
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Rep: Reputation: 15
Question about 'apt-get upgrade' versus 'apt-get install'


I'm trying to install all of the "newest" patches that are in my repository (which is listed in /etc/apt/sources.list), but whenever I type:

apt-get update
apt-get upgrade

... nothing gets installed (it looks like it actually searches for the patches, but always comes out with nothing). I know which packages I need so I try 'apt-get install package-name', and everything installs perfectly.

My question is, since both of these commands are looking in the same place, shouldn't 'apt-get upgrade' install all of the packages in the repository that aren't already installed, instead of me having to install them all manually?
 
Old 07-10-2006, 06:51 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by eur0dad
I'm trying to install all of the "newest" patches that are in my repository (which is listed in /etc/apt/sources.list), but whenever I type:

apt-get update
apt-get upgrade

... nothing gets installed (it looks like it actually searches for the patches, but always comes out with nothing). I know which packages I need so I try 'apt-get install package-name', and everything installs perfectly.

My question is, since both of these commands are looking in the same place, shouldn't 'apt-get upgrade' install all of the packages in the repository that aren't already installed, instead of me having to install them all manually?
apt-get upgrade will only upgrade packages that are already installed on your machine and that do not require installation of new package(s), if these are required then the apt-get install package will work or apt-get dist-upgrade will upgrade everything that can can be that is already installed and may need new package(s). BTW why is this question in the Redhat forum?
 
Old 07-10-2006, 09:50 PM   #3
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Because I'm testing it with various RedHat versions. I don't know much about apt-get, but I always see it linked up with either Redhat/Fedora.
 
Old 07-10-2006, 10:12 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by eur0dad
Because I'm testing it with various RedHat versions. I don't know much about apt-get, but I always see it linked up with either Redhat/Fedora.
Well it was originally in Debian for years now and hopefully Redhat kept the same behavior because what I described is how it works there.
 
Old 07-11-2006, 11:12 AM   #5
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Does anyone know how to get a list of available packages in the repository using apt? I saw in some other forum the command "apt-show-versions", but apparently that's not a Red Hat thing.
 
Old 07-11-2006, 11:24 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by eur0dad
Does anyone know how to get a list of available packages in the repository using apt? I saw in some other forum the command "apt-show-versions", but apparently that's not a Red Hat thing.
apt-cache policy package_name will show you what is available for a single package if you know the name of it, apt-cache search terms searched would search the package's descriptions for the terms used. apt-show-versions is a separate package use the policy command to see if it is available for install.
 
Old 07-14-2006, 12:54 PM   #7
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
I'm confused about what is meant by "upgrading without installing new packages". Say I have kernel-2.14.5, and there's a kernel-2.15.2 in my repository, would 'apt-get upgrade' install that latest version? If it does, I still have to go back and uninstall the previous one, right?

Last edited by eur0dad; 07-14-2006 at 12:56 PM.
 
Old 07-14-2006, 01:09 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by eur0dad
I'm confused about what is meant by "upgrading without installing new packages". Say I have kernel-2.14.5, and there's a kernel-2.15.2 in my repository, would 'apt-get upgrade' install that latest version? If it does, I still have to go back and uninstall the previous one, right?
Taking your kernel package for example if the 2.6.14.5 needed upgrading to say 2.6.14.6 and it needed to have a new package not already installed then it would not be upgraded you would need to apt-get install then the new package would be installed along with it. Now as to the 2.6.14.5 to 2.6.15.2 it would not be upgraded automatically at all unless you had what is called a Meta package installed linux-image-2.6 (I believe it is called this anyways) which depends on whatever the latest kernel image is in the 2.6 series then it would be upgraded. All this is how it works on Debian BTW not sure about how Redhat implemented everything.
 
Old 07-16-2006, 05:41 PM   #9
eur0dad
Member
 
Registered: Jul 2006
Posts: 57

Original Poster
Rep: Reputation: 15
Kind of off the topic question, but if you install a new kernel version, do you have to remove ALL kernel patches for the previous version? I.e. the kernel-boot, kernel-doc patches, or can I just leave them on the system, along with those same patches for the newest kernel version?
 
  


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
using apt-get to upgrade to testing question darkraider Debian 2 01-26-2006 01:09 PM
Question on running apt-get upgrade KDE satimis Red Hat 11 07-19-2004 07:08 AM
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 upgrade question satimis Linux - Software 3 07-24-2003 11:02 PM


All times are GMT -5. The time now is 04:07 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