LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Read the changelog to check for package removal (https://www.linuxquestions.org/questions/slackware-14/read-the-changelog-to-check-for-package-removal-4175667624/)

hitest 01-13-2020 08:55 AM

Read the changelog to check for package removal
 
Slackware64-current is in the midst of very active development. Packages are being upgraded and or added on an almost daily basis.
Sometimes Mr. Volkerding also removes packages; this is noted in the -current changelog.
For example:

Code:

Sat Jan 11 21:58:08 UTC 2020
a/aaa_elflibs-15.0-x86_64-18.txz:  Rebuilt.
  Added:  libdb-4.8.so
  Upgraded:  libcap.so.2.30
  Removed:  libdb-4.2.so
a/mcelog-168-x86_64-1.txz:  Upgraded.
ap/vim-8.2.0111-x86_64-1.txz:  Upgraded.
d/subversion-1.13.0-x86_64-3.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/apr-util-1.6.1-x86_64-8.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/db42-4.2.52-x86_64-4.txz:  Removed.
l/db44-4.4.20-x86_64-4.txz:  Removed.

l/redland-1.0.17-x86_64-6.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/serf-1.3.9-x86_64-4.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/talloc-2.3.1-x86_64-3.txz:  Rebuilt.
  Fix documentation permissions. Thanks to Xsane.
n/httpd-2.4.41-x86_64-2.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
n/ipset-7.5-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.2.0111-x86_64-1.txz:  Upgraded.
+--------------------------+

To remove these packages using slackpkg run:

Code:

# slackpkg clean-system

An Infamous Historian 01-13-2020 10:10 AM

Quote:

Originally Posted by hitest (Post 6077876)
Slackware64-current is in the midst of very active development. Packages are being upgraded and or added on an almost daily basis.
Sometimes Mr. Volkerding also removes packages; this is noted in the -current changelog.
For example:

Code:

Sat Jan 11 21:58:08 UTC 2020
a/aaa_elflibs-15.0-x86_64-18.txz:  Rebuilt.
  Added:  libdb-4.8.so
  Upgraded:  libcap.so.2.30
  Removed:  libdb-4.2.so
a/mcelog-168-x86_64-1.txz:  Upgraded.
ap/vim-8.2.0111-x86_64-1.txz:  Upgraded.
d/subversion-1.13.0-x86_64-3.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/apr-util-1.6.1-x86_64-8.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/db42-4.2.52-x86_64-4.txz:  Removed.
l/db44-4.4.20-x86_64-4.txz:  Removed.

l/redland-1.0.17-x86_64-6.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/serf-1.3.9-x86_64-4.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
l/talloc-2.3.1-x86_64-3.txz:  Rebuilt.
  Fix documentation permissions. Thanks to Xsane.
n/httpd-2.4.41-x86_64-2.txz:  Rebuilt.
  Recompiled against db48-4.8.30.
n/ipset-7.5-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.2.0111-x86_64-1.txz:  Upgraded.
+--------------------------+

To remove these packages using slackpkg run:

Code:

# slackpkg clean-system

Unless you've been very diligent about keeping your blacklists up-to-date, clean-system will also remove third-party packages, which may not be what many people want.

Tonus 01-13-2020 10:19 AM

Read the changelog to check for package removal
 
You safely can unselect those packages you wouldn't have blacklisted ;-)

You know, during years I never used that because I feared it would remove everything without prompt!

drgibbon 01-13-2020 10:25 AM

That's true, you'll want your blacklist up to date before running slackpkg clean-all (although it gives you the chance to de-select packages that you actually want). In general that's not too hard, e.g., the default commented line:
Code:

[0-9]+_SBo
will blacklist all SBo packages once uncommented. Other repos can be added in the same way.

Chuck56 01-13-2020 10:42 AM

...or if you're really paranoid about making a mistake:

no package selection:
Code:

slackpkg -onoff=off clean-system

phalange 01-13-2020 10:59 AM

Quote:

Originally Posted by Chuck56 (Post 6077927)
...or if you're really paranoid about making a mistake:

no package selection:
Code:

slackpkg -onoff=off clean-system

Cool!

An Infamous Historian 01-13-2020 11:15 AM

Quote:

Originally Posted by Chuck56 (Post 6077927)
...or if you're really paranoid about making a mistake:

no package selection:
Code:

slackpkg -onoff=off clean-system

Oh, cool!

Is there somewhere where this is documented? Because I double-checked the man page and didn't see it.

Not doubting you that it's there and it works, just wondering where else I might be able to look for future reference.

Chuck56 01-13-2020 11:33 AM

Quote:

Originally Posted by An Infamous Historian (Post 6077940)
Oh, cool!

Is there somewhere where this is documented? Because I double-checked the man page and didn't see it.

Not doubting you that it's there and it works, just wondering where else I might be able to look for future reference.

man slackpkg.conf
Code:

      ONOFF
            The ONOFF variable sets the initial behavior of the dialog interface.  If  you
            set this to "on" then all packages will be selected by default.  If you prefer
            the opposite option (all unchecked), then set this to "off".

            The default value of ONOFF is "on".
            From command line, you can use -onoff=value.


hitest 01-13-2020 12:05 PM

Quote:

Originally Posted by An Infamous Historian (Post 6077904)
Unless you've been very diligent about keeping your blacklists up-to-date, clean-system will also remove third-party packages, which may not be what many people want.

Yes. But, only if you blindly hit enter after you run the command. You can de-select third party packages prior to removing the packages highlighted by #slackpkg clean-system.

USUARIONUEVO 01-13-2020 05:03 PM

for a good reason exist

/etc/slackpkg/blacklist

as example to no remove alien or compat32 ...can blacklist

# If want remove compat32 comment this two tags below
# Removing this , disable wine usage.
[0-9]+compat32
[0-9]+alien

If use slackbuilds , can add

[0-9]+SBo

and clean-system ,turns secure action for third party packages.

After all , clean-system , show you a menu first , with a list of remove packages list ...you can deselect if no want to remove someone.

garpu 01-13-2020 07:38 PM

And should your friend actually manage to hose things with "clean-system," a list of your removed packages is in /var/log/removed_packages. ls -I can exclude things that have been upgraded, kernel packages, and the like.

phalange 01-13-2020 09:44 PM

Quote:

Originally Posted by garpu (Post 6078094)
And should your friend actually manage to hose things with "clean-system," a list of your removed packages is in /var/log/removed_packages. ls -I can exclude things that have been upgraded, kernel packages, and the like.

This thread keeps getting better. I didn't know about this directory. ls -al --ignore=*upgraded* does the trick. Thanks for posting this.

Richard Cranium 01-15-2020 09:54 PM

slackroll will tell you which packages that aren't available any more with the list-transient command.

Geist 01-15-2020 10:40 PM

Btw: 'onoff' and co are the slackpkg.conf manpage, not slackpkg.

Edit:
D'oh, nevermind, Chuck56 already said that.

Well, uhh...
Uh... in case you are going through the removed files 'manually', maybe by searching the changelog, using removepkg instead, well, there's a '--copy' switch that generates an 'exploded' (aka, not tied up on a txz file) backup of the package which you could then re-generate if needed.


Ahem...hopefully that's less of a wasted post now... (and the worst thing is, I wasn't even aware of that until y'all told me so... hahaa)

NonNonBa 01-16-2020 04:42 AM

Quote:

Originally Posted by Richard Cranium (Post 6078865)
slackroll will tell you which packages that aren't available any more with the list-transient command.

But, as slackpkg, it won't say when a local package depends of a removed package, will it?


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