Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
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.
|
 |
|
06-10-2015, 09:57 AM
|
#16
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by mfoley
Is there no way to force a reinstallation/update of every package?
|
Easiest way I can think of is to mount the Slackware DVD (or DVD iso) to a directory and then just run upgradepkg --reinstall --install-new /location/to/slackware-dvd/slackware64/*/*.txz. Once this is done, you should have all the stock packages reinstalled. Then, hopefully, it should just be a matter of using slackpkg to update the system to get the latest packages.
Keep in mind, since you showed multiple openssl packages (and there's the possibility other packages had multiple versions installed), you may end up with files that belong to no recognized package. This may or may not cause problems when compiling software that relies on those packages.
You may also be able to reinstall everything with slackpkg, but as I said before, I'm not too familiar with the program. You might be able to do it with one of the below commands (since /var/log/packages was cleared, it might require the "install" option instead of the "reinstall"):
Code:
slackpkg install slackware64
slackpkg reinstall slackware64
Good luck!
|
|
|
06-15-2015, 10:52 PM
|
#17
|
Slackware Contributor
Registered: May 2015
Distribution: Slackware
Posts: 1,926
|
Quote:
Originally Posted by mfoley
> slackpkg info openssl
PACKAGE NAME: openssl-1.0.1m-x86_64-1_slack14.1.txz
PACKAGE LOCATION: ./patches/packages
PACKAGE SIZE (compressed): 2912 K
PACKAGE SIZE (uncompressed): 13070 K
PACKAGE NAME: openssl-1.0.1e-x86_64-1.txz
PACKAGE LOCATION: ./slackware64/n
PACKAGE SIZE (compressed): 2844 K
PACKAGE SIZE (uncompressed): 12670 K
|
If you notice the package location of each openssl package you will see that one is a patch and the other is the full package that had been patched. slackpkg will list all packages you query as well as their subsequent patches. You were mistaken not to read the path of the package in the output.
The following will show all packages and patches for the system.
Code:
slackpkg info openssl
The command you should be using with slackpkg to see what is installed / upgraded / uninstalled are:
Code:
slackpkg search openssl
If you cannot find the package by that name for whatever reason, then there is the 'file-search' option. This option will list the packages, related packages, and any other packages with files or dependencies related to that string query.
Code:
slackpkg file-search openssl
I suppose though the point is moot now. If you deleted all those files you mentioned and pkgtool is missing, you have bigger problems!
Quote:
OK, I'm cleaning out /var/lib/slackpkg/ /var/log/packages and /var/log/scripts/, removing /tmp/slackpkg.* and starting from absolute scratch. For postmortem analysis I changed /etc/slackpkg.conf to set DELALL=off (don't delete files after installing) and DOWNLOAD_ALL=off (to install as it goes instead of waiting until the end).
|
Quote:
1 00:11:29 root@webserver:~
> pkgtool
-su: pkgtool: command not found
1 00:11:35 root@webserver:~
> find / -xdev -name pkgtool
1 00:11:45 root@webserver:~
|
You should have checked your PATH variable as well as used the which command like so:
Code:
root@exitstatusone:~# which pkgtool
/sbin/pkgtool
|
|
|
06-15-2015, 11:03 PM
|
#18
|
Member
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 15.0 x86_64 -stable
Posts: 158
Rep:
|
As I mentioned above shalt taste the slpkg? if you do not then fine.
|
|
|
06-17-2015, 05:28 PM
|
#19
|
Senior Member
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,722
Original Poster
Rep: 
|
I think I've figured out what went wrong. I cleaned out everything I could find with slackpkg logs, downloads, etc. Started `slackpkg update`, which did download a bunch of stuff. Then `slackpkg ugrade-all`, but at the end of that, I still had my old programs; e.g. openssl 1.0.1e, not 1.0.1m.
So, I tried hand-upgrading. That worked for openssl and for samba (4.1.0 -> 4.1.17), but after upgrading httpd from 2.4.6 to 2.4.12 I got "httpd: symbol lookup error: httpd: undefined symbol: apr_table_getm". So did `slackpkg install apr` which did upgrade that package, but httpd then gave an undenfied symbol error with mod_proxy. I couldn't find a way to upgrade httpd modules (the install of the new httpd didn't do it), so I restored everything from before I started messing, upgraded openssl and samba and left it at that.
Later, I installed Slackware 64 4.1 on a completely different computer from the same DVD. I did the `slackpkg update` and `slackpkg upgrade-all` (it ran for about 20 hours!) and everything upgraded just fine.
What I think happened was that after installing the 1st system and before doing the upgrades, I restored production directories from the original backup (this was an update of an existing system). Those directories included /var/log and /root which hold slackpkg info. I apparently clobbered enough config stuff that slackpkg was hopelessly lost. A lesson for next time!
What would be really nice would be a `slacpkg reset-all` that would put things back to the as-installed state, because restores happen! Or even a `slackpgk discover-all` which would examine all the packages and correct the package archives depending on the actual version installed.
Last edited by mfoley; 06-17-2015 at 05:32 PM.
|
|
|
06-19-2015, 08:32 AM
|
#20
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
If you overwrite /var/log/packages and /var/log/scripts with backups from other computers, then there is nothing you can do to fix that. These directories can not be re-populated from your computer's content.
It's no different when you kill a RPM database on a Redhat machine by the way.
Be more careful with the package database next time.
|
|
|
All times are GMT -5. The time now is 08:43 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
|
|