Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
09-14-2023, 10:09 AM
#1
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Rep:
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
09-14-2023, 11:03 AM
#2
Member
Registered: Mar 2009
Location: Greece,Crete
Distribution: Slackware64-current, Slint
Posts: 664
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.
09-14-2023, 12:43 PM
#3
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906
Quote:
Originally Posted by
rzdndr
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.
09-14-2023, 12:52 PM
#4
Senior Member
Registered: Apr 2015
Posts: 2,338
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.
09-14-2023, 01:42 PM
#5
LQ Sage
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,395
Quote:
Originally Posted by
USUARIONUEVO
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
09-14-2023, 01:58 PM
#6
Member
Registered: May 2018
Location: UK
Distribution: Slackware (servers), Void (desktop/laptop)
Posts: 299
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.
09-15-2023, 08:22 AM
#7
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Original Poster
Rep:
Quote:
Originally Posted by
rizitis
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
09-15-2023, 08:33 AM
#8
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Original Poster
Rep:
Quote:
Originally Posted by
drumz
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.
09-15-2023, 09:43 AM
#9
Senior Member
Registered: Apr 2015
Posts: 2,338
Quote:
Originally Posted by
marav
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.
09-15-2023, 10:41 AM
#10
Senior Member
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,978
Quote:
Originally Posted by
rzdndr
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.
Last edited by chrisretusn; 09-15-2023 at 10:47 AM .
2 members found this post helpful.
09-15-2023, 12:01 PM
#11
Senior Member
Registered: Mar 2007
Posts: 1,826
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.
09-16-2023, 02:41 AM
#12
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Original Poster
Rep:
Quote:
Originally Posted by
chrisretusn
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.
09-16-2023, 02:42 AM
#13
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Original Poster
Rep:
Quote:
Originally Posted by
Petri Kaukasoina
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.
09-16-2023, 03:41 AM
#14
LQ Veteran
Registered: May 2008
Posts: 6,910
Quote:
Originally Posted by
rzdndr
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.
09-16-2023, 05:16 AM
#15
Member
Registered: Aug 2023
Distribution: Slackware 15.0 x86_64
Posts: 68
Original Poster
Rep:
Quote:
Originally Posted by
GazL
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 .
All times are GMT -5. The time now is 03:28 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News