LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-06-2016, 12:11 PM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Slackware
Posts: 420

Rep: Reputation: 194Reputation: 194
Different output of apt-get and aptitude for package upgarde


Hi
Normally I use apt-get for to upgrade my Debian system. Today i tried to compare apt-get and aptitude with respect to system upgrade. Surprisingly I got different results.

Code:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  openjdk-7-jre openjdk-7-jre-headless
The following packages will be upgraded:
  libtiff5
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 213 kB of archives.
After this operation, 44.0 kB disk space will be freed.
Code:
sudo aptitude safe-upgrade
Resolving dependencies...                
The following NEW packages will be installed:
  libsctp1{a} lksctp-tools{a} 
The following packages will be upgraded:
  libtiff5 openjdk-7-jre openjdk-7-jre-headless 
3 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.9 MB/45.9 MB of archives. After unpacking 9,130 kB will be used.
What is behind these results? Which method is safer?
 
Old 02-06-2016, 02:29 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,605

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Use 'aptitude full-upgrade' to ensure your system is up to date.

The results above beg the question of what you have done to cause apt-get to be holding back those packages.
 
Old 02-08-2016, 08:24 AM   #3
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,406

Rep: Reputation: 246Reputation: 246Reputation: 246
Quote:
Originally Posted by travis82 View Post
What is behind these results?
"apt-get upgrade" will not use non-installed packages if you don't ask it to do so (shouldn't happen in stable though, use dist- or full-upgrade as "descendant_command" already mentionned).

Quote:
Originally Posted by travis82 View Post
Which method is safer?
Both.
At the end, your package manager is still DPKG.
As long as it can keep track of everything, their's nothing to worry about.

PS: ... one other user tool is the new "apt" binary (as in: "apt install foobar), it aims to combine most lower level tools with some extras (like a nice progress bar).

Last edited by jens; 02-08-2016 at 09:20 AM.
 
1 members found this post helpful.
Old 02-08-2016, 11:31 PM   #4
travis82
Member
 
Registered: Feb 2014
Distribution: Slackware
Posts: 420

Original Poster
Rep: Reputation: 194Reputation: 194
Thank you both
 
  


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
[SOLVED] can not run aptitude nor apt-get to install any package rewesh Debian 7 10-20-2011 05:06 PM
apt/aptitude package management "auto" flag cjmueller Debian 2 10-16-2011 10:52 PM
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 08:21 AM
aptitude vs apt-get PCalitrack Ubuntu 3 08-08-2006 11:34 AM
aptitude .vs. apt-get thelonius Debian 12 07-25-2006 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration