Article 5P6VQ Slackpkg cleanup after oddball install

Slackpkg cleanup after oddball install

by
astrogeek
from LinuxQuestions.org on (#5P6VQ)
Sometime in July I installed a clean new -current system from a local repo, then performed some necessary post-install configuration, db imports, etc. then the system was set aside until today when I needed to get it online.

I began by first trying to bring it up to date using slackpkg which had not yet been configured. After configuring and mounting the local repo I faced a wall of messages like this...

Code: ...
Package xdg-desktop-portal-kde-5.22.5-x86_64-1.txz is already in cache - not downloading
Upgrading xdg-desktop-portal-kde-5.22.5-x86_64-1...

Error: there is no installed package named xdg-desktop-portal-kde-5.22.5-x86_64-1.
(looking for /var/lib/pkgtools/packages/xdg-desktop-portal-kde-5.22.5-x86_64-1)

Package xfig-3.2.8b-x86_64-1.txz is already in cache - not downloading
Upgrading xfig-3.2.8b-x86_64-1...

Error: there is no installed package named xfig-3.2.8b-x86_64-1.
(looking for /var/lib/pkgtools/packages/xfig-3.2.8b-x86_64-1)
...A quick search of LQ found this post which pointed in the right direction - thank you bassmadrigal - and this reply from phalanx which described my own installation!

The problem was that I had booted the installer from 14.2 before installing a full -current instance, and there was a change in location of the package database from 14.2 to -current.

The solution in that thread was a full resintall of 14.2 then upgrade to -current, but I wanted to avoid a full reinstall and just fix the existing installation if possible.

To do that with some degree of confidence I checked the relevant paths and files against another clean install which had been done from a -current installer boot and adjusted accordingly. I'll show everything here as a mv operation for simplicity, but where there were exisiting files in the target directories I merged their contents first, then removed the source directory.
Code:cd /var/log

mv packages ../lib/pkgtools/.
mv scripts ../lib/pkgtools/.
mv setup ../lib/pkgtools/.
mv removed_packages pkgtools/.
mv removed_scripts pkgtools/.
mv removed_uninstall_scripts pkgtools/.

ln -s ../lib/pkgtools/packages .
ln -s ../lib/pkgtools/scripts .
ln -s ../lib/pkgtools/setup .
ln -s pkgtools/removed_packages .
ln -s pkgtools/removed_scripts .
ln -s pkgtools/removed_uninstall_scripts .After all that slackpkg updated and upgrade-all'd successfully.

I am mostly posting this here as a reminder for myself, and also to have it all in one place for anyone else who may need it, rather than asking a question. However, if anyone should see something I have missed or wishes to comment, please post it here!latest?d=yIl2AUoC8zA latest?i=IGaA8653kd4:AzU7QwTzmHg:F7zBnMy latest?i=IGaA8653kd4:AzU7QwTzmHg:V_sGLiP latest?d=qj6IDK7rITs latest?i=IGaA8653kd4:AzU7QwTzmHg:gIN9vFwIGaA8653kd4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments