LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   pkgtools and listing packages that need upgrades (https://www.linuxquestions.org/questions/slackware-14/pkgtools-and-listing-packages-that-need-upgrades-4175728946/)

rzdndr 09-14-2023 10:09 AM

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

rizitis 09-14-2023 11:03 AM

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...

drumz 09-14-2023 12:43 PM

Quote:

Originally Posted by rzdndr (Post 6453661)
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"

USUARIONUEVO 09-14-2023 12:52 PM

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

marav 09-14-2023 01:42 PM

Quote:

Originally Posted by USUARIONUEVO (Post 6453713)
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

tadgy 09-14-2023 01:58 PM

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? :)

rzdndr 09-15-2023 08:22 AM

Quote:

Originally Posted by rizitis (Post 6453667)
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

rzdndr 09-15-2023 08:33 AM

Quote:

Originally Posted by drumz (Post 6453708)
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.

USUARIONUEVO 09-15-2023 09:43 AM

Quote:

Originally Posted by marav (Post 6453718)
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.

chrisretusn 09-15-2023 10:41 AM

4 Attachment(s)
Quote:

Originally Posted by rzdndr (Post 6453835)
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.

Petri Kaukasoina 09-15-2023 12:01 PM

To only list all the packages that would be upgraded, try:
Code:

slackpkg -batch=on -default_answer=n upgrade-all

rzdndr 09-16-2023 02:41 AM

Quote:

Originally Posted by chrisretusn (Post 6453876)
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.

rzdndr 09-16-2023 02:42 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6453887)
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.

GazL 09-16-2023 03:41 AM

Quote:

Originally Posted by rzdndr (Post 6453997)
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.

rzdndr 09-16-2023 05:16 AM

Quote:

Originally Posted by GazL (Post 6454003)
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. :)


All times are GMT -5. The time now is 04:33 AM.