LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-11-2017, 10:07 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Rep: Reputation: 98
how to slackpkg restore old package


I want to revert to a previous version of Thunderbird. How do I do this?

I've tried removepkg on the current version, copying the old package file from /var/log/removed_packages to /var/log/packages and then trying:
Code:
# slackpkg install mozilla-thunderbird-45.1.1-x86_64-1

Looking for mozilla-thunderbird-45.1.1-x86_64-1 in package list. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade 

# installpkg --ask mozilla-thunderbird-45.1.1-x86_64-1 
Cannot install mozilla-thunderbird-45.1.1-x86_64-1:  file does not end in .tgz, .tbz, .tlz, or .txz
Obviously, these don't work. I've read that this can be done, but I'm finding nothing on the Internet about how to do it.
 
Old 10-11-2017, 10:30 AM   #2
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
personally this is what I'd try to do. get the old tar ball, get a slackbuild that is for it, or close to it. by it, i mean set up to compile the specif tar ball app. then make that work in compiling you another .tgz to install then run upgradepkg on it. it will just remove the one that is installed then install the one you just made.

if you got it already, then this is you problem here:
Quote:
installpkg --ask mozilla-thunderbird-45.1.1-x86_64-1
Cannot install mozilla-thunderbird-45.1.1-x86_64-1: file does not end in .tgz, .tbz, .tlz, or .txz
it needs to be absolute path and filename.
Code:
sudo installpkg /tmp/mozilla-thunderbird-45.1.1-x86_64-1.tgz

Last edited by BW-userx; 10-11-2017 at 10:35 AM.
 
Old 10-11-2017, 10:39 AM   #3
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 647

Rep: Reputation: 488Reputation: 488Reputation: 488Reputation: 488Reputation: 488
The "packages" in /var/log are not actually packages; they are just summaries of the files included in the packages. If you want to reinstall an old version of the package, you have to get the package itself from somewhere and install that.

The tricky part will be getting an old version of the package if you don't already have it on your machine. If you set DELALL="off" in slackpkg.conf, it will keep the packages on your machine after installing. That's not the default, though, so if you haven't set it that way, it's already too late. The next best option that I can think of would probably be what BW-userx suggested: to rebuild the package yourself using the official SlackBuild but reverting the source to the old version. (Although, that may or may not work depending on whether changes were made to the SlackBuild when the package was upgraded.)

Last edited by montagdude; 10-11-2017 at 10:46 AM.
 
Old 10-11-2017, 11:23 AM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 272

Rep: Reputation: 153Reputation: 153
-copy and -preserve parameters of removepkg are what you need to know before upgrade package(s) with slackpkg.

Last edited by bormant; 10-11-2017 at 01:42 PM.
 
Old 10-11-2017, 11:57 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Original Poster
Rep: Reputation: 98
OK, some progress. Thanks for that collective info. I found the old package on the Slackware site at https://mirrors.slackware.com/slackw...ackware64/xap/. I downloaded and installed it. So far so good.
 
Old 10-11-2017, 02:10 PM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,193

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
Quote:
Originally Posted by bormant View Post
-copy and -preserve parameters of removepkg are what you need to know before upgrade package(s) with slackpkg.
Indeed but there are some catches with them. Consider this thread.
 
1 members found this post helpful.
  


Reply

Tags
package, restore, slackpkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackpkg vs. third-party package repository kikinovak Slackware 659 05-13-2017 08:21 AM
Having trouble upgrading package with slackpkg mfoley Slackware - Installation 36 08-23-2015 07:20 AM
Blacklist package group from slackpkg Phorize Slackware 2 08-19-2013 04:34 AM
[SOLVED] Slackpkg package search function ADX Slackware 3 07-15-2011 12:49 PM
Holding a package update from slackpkg gazj Slackware 2 01-25-2011 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration