LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2023, 10:09 AM   #1
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Rep: Reputation: 8
pkgtools and listing packages that need upgrades


Hello All,

Is there a good way in Slackware, using pkgtools (upgradepkg for instance) to list all the packages that need to be upgraded?

Regards
 
Old 09-14-2023, 11:03 AM   #2
rizitis
Member
 
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 664
Blog Entries: 1

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
For officially Slackware packages, thats is exactly the job of slackpkg.
Read here how you maintain a slackware system with slackpkg

If you need more help after that, ask...

Last edited by rizitis; 09-14-2023 at 11:04 AM.
 
2 members found this post helpful.
Old 09-14-2023, 12:43 PM   #3
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by rzdndr View Post
Hello All,

Is there a good way in Slackware, using pkgtools (upgradepkg for instance) to list all the packages that need to be upgraded?

Regards
First cd to directory containing packages (e.g. slackware64-15.0/patches/packages), then:
Code:
upgradepkg --dry-run *.t?z | grep -v "already installed"
 
1 members found this post helpful.
Old 09-14-2023, 12:52 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Other thread making easy things harder.

1 - update the package list --> slackpkg update
2 - if your are on -current --> slackpkg install-new
3 - install the upgrades --> slackpkg upgrade-all

END

THE FILM THAT EXCITED SPILBERG
 
2 members found this post helpful.
Old 09-14-2023, 01:42 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,395

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Quote:
Originally Posted by USUARIONUEVO View Post
Other thread making easy things harder.

1 - update the package list --> slackpkg update
2 - if your are on -current --> slackpkg install-new
3 - install the upgrades --> slackpkg upgrade-all

END

THE FILM THAT EXCITED SPILBERG
4- on -current, clean up removed pkg : slackpkg clean-system
 
Old 09-14-2023, 01:58 PM   #6
tadgy
Member
 
Registered: May 2018
Location: UK
Distribution: Slackware (servers), Void (desktop/laptop)
Posts: 299

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
5 - Set an update marker --> date >/root/LAST-UPDATED

So that you know how far back in the ChangeLog you need to read BEFORE you do the updates - you do actually read the ChangeLog regularly if you're running current, right?
 
1 members found this post helpful.
Old 09-15-2023, 08:22 AM   #7
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by rizitis View Post
For officially Slackware packages, thats is exactly the job of slackpkg.
Read here how you maintain a slackware system with slackpkg

If you need more help after that, ask...
Does slackpkg upgrade ask to the user before upgrading. Was not sure about that. And the page did not say anything about that. Hence the question.

Regards
 
Old 09-15-2023, 08:33 AM   #8
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by drumz View Post
First cd to directory containing packages (e.g. slackware64-15.0/patches/packages), then:
Code:
upgradepkg --dry-run *.t?z | grep -v "already installed"
Will try this. Thanks.
 
Old 09-15-2023, 09:43 AM   #9
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,338

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by marav View Post
4- on -current, clean up removed pkg : slackpkg clean-system
If you do this , bye bye , alienb0b or other 3rthd party packages like yours build from sbo (ponce repo)

Can blacklist by TAG , but probably better read the changelogs.
 
1 members found this post helpful.
Old 09-15-2023, 10:41 AM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by rzdndr View Post
Does slackpkg upgrade ask to the user before upgrading. Was not sure about that. And the page did not say anything about that. Hence the question.

Regards
Yes, 'slackpkg upgrade [packages]' or 'slackpkg upgrade-all' will show you a dialog that you can deselect/select each package or You can Cancel.

See the screenshots for
'slackpkg upgrade mozilla-firefox'
'slackpkg upgrade mozilla-firefox Cython'
'slackpkg upgrade-all'

Also 'slackpkg clean-system' will show you a dialog.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20230915_233848.jpeg
Views:	15
Size:	23.8 KB
ID:	41667   Click image for larger version

Name:	Screenshot_20230915_234014.jpeg
Views:	16
Size:	25.4 KB
ID:	41668   Click image for larger version

Name:	Screenshot_20230915_234259.jpeg
Views:	19
Size:	58.5 KB
ID:	41669   Click image for larger version

Name:	Screenshot_20230915_235152.jpeg
Views:	17
Size:	24.7 KB
ID:	41671  

Last edited by chrisretusn; 09-15-2023 at 10:47 AM.
 
2 members found this post helpful.
Old 09-15-2023, 12:01 PM   #11
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,826

Rep: Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499Reputation: 1499
To only list all the packages that would be upgraded, try:
Code:
slackpkg -batch=on -default_answer=n upgrade-all
 
2 members found this post helpful.
Old 09-16-2023, 02:41 AM   #12
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by chrisretusn View Post
Yes, 'slackpkg upgrade [packages]' or 'slackpkg upgrade-all' will show you a dialog that you can deselect/select each package or You can Cancel.

See the screenshots for
'slackpkg upgrade mozilla-firefox'
'slackpkg upgrade mozilla-firefox Cython'
'slackpkg upgrade-all'

Also 'slackpkg clean-system' will show you a dialog.
Thank you.
 
Old 09-16-2023, 02:42 AM   #13
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Original Poster
Rep: Reputation: 8
Smile

Quote:
Originally Posted by Petri Kaukasoina View Post
To only list all the packages that would be upgraded, try:
Code:
slackpkg -batch=on -default_answer=n upgrade-all
I was about to write a tool that would do that. That is handy. Thank you.
 
1 members found this post helpful.
Old 09-16-2023, 03:41 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,910

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Quote:
Originally Posted by rzdndr View Post
I was about to write a tool that would do that. That is handy. Thank you.
I already have.

It works slightly differently to slackpkg though, so it won't be to everyone's taste.
 
Old 09-16-2023, 05:16 AM   #15
rzdndr
Member
 
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by GazL View Post
I already have.

It works slightly differently to slackpkg though, so it won't be to everyone's taste.
I am beginner in bash scripting. Wanted to write something simple in python, processing the packages directory and the PACKAGES.txt file. Good thing there was something in slackpkg.

Last edited by rzdndr; 09-16-2023 at 05:44 AM.
 
  


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
pkgtools improvements - approx 20% speed improvement upgrading packages drmozes Slackware - ARM 1 06-13-2021 08:23 AM
Curious: pkgtools Directories and SymlLnks with pkgtools-15.0-noarch-20.txz on Thu Jun 21 22:58:42 UTC 2018 kjhambrick Slackware 4 06-23-2018 01:16 AM
sftp ls command, short listing vs long listing slufoot80 Linux - General 3 02-05-2013 10:40 AM
[SOLVED] clfs and pkgtools charlie_lab Linux From Scratch 13 06-25-2010 09:46 AM
Slackpkg and pkgtools md5sum error piratesmack Slackware 3 04-16-2009 07:18 PM

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

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