LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   selective apt-get upgrade package (https://www.linuxquestions.org/questions/linux-newbie-8/selective-apt-get-upgrade-package-683373/)

lrt 11-14-2008 09:14 AM

selective apt-get upgrade package
 
i want to upgrade a package (backuppc). it tells me its also going to upgrade the samba packages... how do i prevent it from doing this????

irishbitte 11-14-2008 09:18 AM

uninstall backuppc and reinstall?

read:

Code:

man apt-get

rickh 11-14-2008 09:38 AM

Do we understand the concept of "dependencies"? samba-common is a dependency of backuppc ... That means you can't upgrade one without the other.

...not using apt anyway. You may be able to build the newer version of backuppc against your older version of samba-common. You may not be able to do so, as well.

lrt 11-14-2008 11:06 AM

Quote:

Originally Posted by rickh (Post 3341853)
Do we understand the concept of "dependencies"? samba-common is a dependency of backuppc ... That means you can't upgrade one without the other.

...not using apt anyway. You may be able to build the newer version of backuppc against your older version of samba-common. You may not be able to do so, as well.

i know samba-common is a dependency of backuppc. i'm currently running backuppc 3.1 with samba 3.0.28a.

on a separate machine, i want to upgrade backuppc 3.0 to 3.1, but it also wants to upgrade samba to 3.2.3. i don't want to upgrade samba. can't i prevent apt-get from doing this????

rickh 11-14-2008 11:31 AM

Quote:

can't i prevent apt-get from doing this????
No. Have we tried to grasp the concept of "dependencies" yet?

lrt 11-14-2008 11:38 AM

Quote:

Originally Posted by rickh (Post 3341949)
No. Have we tried to grasp the concept of "dependencies" yet?

if i'm already running samba 3.0.28a and backuppc 3.1 with no problems, then backuppc 3.1 is not dependent on samba 3.2.3 and therefore i should not have to upgrade samba to upgrade to backuppc 3.1.

rickh 11-14-2008 12:00 PM

Sorry. I assumed you were using Debian. Now I see it's Ubuntu. Who knows what kind of a mess you can make there?

pwc101 11-14-2008 12:03 PM

Why don't you just grab the .deb and install it with dpkg? I'm pretty certain you can get it to ignore dependency issues. There are risks associated with this (like breaking your system), but it's your machine.

What's so bad about samba 3.2.3 anyway?

irishbitte 11-17-2008 02:49 PM

Why do you not want to upgrade SAMBA? Just backup your config files, then upgrade, then put back your config files! Whats the big deal?

leorolla 05-20-2010 03:41 AM

I was looking for the same thing, an apt-get option to upgrade just one package.

There is a workaround though: sudo aptitude gives a terminal GUI.

the.fallen 10-05-2010 09:23 AM

Bad english, I know. Excuse me
But i have the same problem, and setup a virtual machine with Ubuntu 10.04 LTS Server for testing.
I run
Code:

sudo apt-get upgrade
and receive a long list with packages that must be upgraded. gzip was in list, and I choose to "screw" him..
Then I used
Code:

sudo apt-get install gzip
gzip is an example, and only gzip was ugraded, not the other packages.


All times are GMT -5. The time now is 01:45 AM.