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 07-05-2020, 06:14 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
apt: "108 packages can be upgraded".. How do I upgrade them?


Code:
root@darkstar:~# apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
108 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@darkstar:~# apt
Alright. 108 packages can be upgraded. How do I upgrade them? By hand, one by one? There must be a faster way. Is there?
 
Old 07-05-2020, 06:36 PM   #2
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
You need to read the man apt page. The command you are looking for is
Code:
sudo apt upgrade
Everything that needs upgrading will be upgraded.
 
Old 07-05-2020, 06:38 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks a lot. I used 'apt dist-upgrade'.
 
Old 07-05-2020, 07:03 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
By the way. I installed build-essential. But I look for binutils and don't find it. Is there a way to install all the development packages not contained in build-essetial?
 
Old 07-05-2020, 07:40 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,404
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
If it were me, I'd do this: As root, open the Synaptic package manager and use the search function.
 
Old 07-06-2020, 02:30 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
By the way. I installed build-essential. But I look for binutils and don't find it.
This is strange. The dependency chain should be like this:

build-essential > dpkg-dev > binutils
or
build-essential > gcc > gcc-9 > binutils

Does binutils show up in the output of
Code:
apt-cache -i --recurse depends build-essential|grep -w binutils
 
Old 07-06-2020, 04:37 AM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,537

Rep: Reputation: Disabled
Also the --fix-broken option might be needed with apt.
 
Old 07-06-2020, 06:44 AM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I did 'apt install binutils' and it said "binutils is already the newest version". So I have the binutils package installed. I have a list of packages that are supposed to be installed on this machine and I want to check if they are in my system or not.

(a)
Is there a directory containing the names of all the packages installed up to present? For instance, in slackware, you have the /var/log/packages directory and the dir command executed with this as the current directory will list all the package names.

(b)
Code:
root@darkstar:/usr/local/bin# apt install bison
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libbison-dev libsigsegv2 m4
Suggested packages:
  bison-doc m4-doc
The following NEW packages will be installed:
  bison libbison-dev libsigsegv2 m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,607 kB of archives.
After this operation, 3,239 kB of additional disk space will be used.
Do you want to continue? [Y/n]
The list of suggested packages can be much longer. How do I install all of them?

Last edited by stf92; 07-06-2020 at 07:09 AM.
 
Old 07-06-2020, 07:08 AM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
I use this script:
Code:
#!/bin/sh
exec dpkg-query \
  -Wf'${db:Status-Abbrev}${binary:Package}=${Version}\n' "$@" | \
        sed -n s/^.i.//p
It's ~/bin/dli on all my Debian-based systems.
 
Old 07-06-2020, 07:39 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,123

Rep: Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373
Quote:
Originally Posted by stf92 View Post
Is there a directory containing the names of all the packages installed up to present?
dpkg -l
will list all the installed packages. Do not install all the suggested packages (if you do not really need to).
 
Old 07-06-2020, 08:05 AM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks. But when it suggests packages they happen to be -doc packages. Isn't documentation essential?
 
Old 07-06-2020, 08:21 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,123

Rep: Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373Reputation: 7373
no, not at all. I mean the system itself can work without any documentation. And you should now if you wanted to read some documentation.
 
Old 07-06-2020, 11:41 AM   #13
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
By the way, I want to know if I have diffutils version greater than or equal to 2.8.1 installed. I did
Code:
root@darkstar:/usr/local/bin# dpkg -l diffutils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  diffutils      1:3.7-3      amd64        File comparison utilities
root@darkstar:/usr/local/bin#
But, how do I interpret that version number? How does it compare with 2.8.1?
 
Old 07-06-2020, 11:43 AM   #14
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
3.7 is greater than 2.8.1:
Code:
$ dpkg --compare-versions 1:3.7-3 '>=' 2.8.1&&echo yep||echo nay
yep

Last edited by shruggy; 07-06-2020 at 11:46 AM.
 
Old 07-06-2020, 11:49 AM   #15
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks.
 
  


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
A proposal about disallowing the "upgrade" of runtime kernel packages, and just to "install" them instead while using upgradepkg Darth Vader Slackware 20 06-12-2018 04:17 AM
[SOLVED] LFS 7.3 / Chapter 6.17.1 / Page 108 / Error from " make -k check " Drumachine Linux From Scratch 5 08-19-2013 04:19 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
apt-get upgrade stopped, how can I remove packages before continuing upgrade? [KIA]aze Linux - Newbie 4 05-31-2007 07:49 AM
How can I store saved apt-get packages to save redownloading them? colabus Linux - Newbie 9 05-21-2004 10:35 PM

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

All times are GMT -5. The time now is 12:42 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
Open Source Consulting | Domain Registration