[SOLVED] Current64: removepkg fails to find an installed package
SlackwareThis 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.
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.
Current64: removepkg fails to find an installed package
Current64: Today after doing an "upgradepkg --reinstall --install-new" I noticed both the old and the new package to be listed in /var/log/packages.
So I restored my backup and tried again: same problem.
So I restored my backup once more and tried a "removepkg: package not found ...
It looks like the Sep 14/15 2016 (!) changes to removepkg do not work as expected (in all cases?):
Code:
# Thu Sep 15 17:46:28 UTC 2016 <volkerdi>
# If removepkg is called with a short package name (no -$VERSION-$ARCH-$BUILD),
# remove the most recently installed matching package, not the oldest one.
#
# Thu Sep 15 08:09:01 BST 2016 <mozes>
# - Handle finding >1 match for a package. Thanks to SeB on LQ for the feedback.
#
# Wed Sep 14 20:44:00 BST 2016 <mozes>
# - Modify package_name function to cater for package file names that contain
# >=4 hyphens.
# Thanks to coralfang on LQ for the report and to Jim Hawkins for the patch.
# - Modified to handle packages that contain file names with backslashes
# Thanks to aaazen on LQ for the report and the patch.
when that happens to me I get the entire name of it all the way down to tzx or tgz then run that with removepkg and it removes it.
have you tired doing something like this
Code:
$ ls /var/log/packages | grep pavucontrol
pavucontrol-3.0-x86_64-1
removepkg pavucontrol-3.0-x86_64-1
root@riposo:~/works/pmagic# ls $ROOT/var/log/packages/spl*
/root/works/pmagic/squashfs-root/var/log/packages/spl-solaris-0.7.5_4.14.11-pmagic-i586-1_pmagic
root@riposo:~/works/pmagic# ROOT=$ROOT sh -x /sbin/removepkg spl-solaris |& tee log.log
Your package name is malformed. The name is not "spl-solaris" but "spl-solaris-0.7.5_4.14.11" (with VERSION="pmagic", ARCH="i586" and BUILD="1_pmagic").
Thank you guys!
Why on earth I did not notice the malformed filename, even after looking at things for literally hours, will forever be a mystery ...
Closing this thread as a user error ..,
During January 2018 there was a bug in the SBo SlackBuilds for spl-solaris and zfs-on-linux that created malformed package names if the Linux kernel had an extraversion (e.g. -smp on 32 bit, or -pmagic as above). Sorry about that. It was fixed at the end of January, but of course, that doesn't help with existing packages. burdi01, it's worth checking your zfs-on-linux package for the same problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.