LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
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,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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,463

Rep: Reputation: 299Reputation: 299Reputation: 299
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: Bedrock
Posts: 437

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


Reply



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 09:28 PM.

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
Open Source Consulting | Domain Registration