LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-27-2024, 07:56 AM   #1
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Script to revert to previous version


Hi,

Here is a script, that point to slackware.uk "cumulative" repo, to revert easily to a previous version of a package, in some case this can be the only workaround to avoid a temporarily breakage in -current

https://gitlab.com/maravtdm/slackbui...ref_type=heads

As for example:
Code:
blackstar :: ~ » pkg_cumul
Run this script as root
Code:
blackstar:~:# pkg_cumul 
Please enter a package name.
Code:
blackstar:~:# pkg_cumul enchant
Last 3 previous enchant packages available :

  1     enchant-2.6.5-x86_64-1.txz
  2     enchant-2.6.6-x86_64-1.txz
  3     enchant-2.6.7-x86_64-1.txz

Package to download (1...3 or "q" to quit) ? 2
Code:
Package /tmp/enchant-2.6.6-x86_64-1.txz (55.54 KiB) downloaded successfully !

Install or delete /tmp/enchant-2.6.6-x86_64-1.txz (i/R) ? i
Code:
+==============================================================================
| Upgrading enchant-2.6.8-x86_64-1 package using /tmp/enchant-2.6.6-x86_64-1.txz
+==============================================================================
Pre-installing package enchant-2.6.6-x86_64-1...
Removing package: enchant-2.6.8-x86_64-1-upgraded-2024-03-27,13:43:00
  --> Deleting /usr/doc/enchant-2.6.8/AUTHORS
  --> Deleting /usr/doc/enchant-2.6.8/COPYING.LIB
  --> Deleting /usr/doc/enchant-2.6.8/HACKING
  --> Deleting /usr/doc/enchant-2.6.8/NEWS
  --> Deleting /usr/doc/enchant-2.6.8/README
  --> Deleting /usr/doc/enchant-2.6.8/enchant-2.html
  --> Deleting /usr/doc/enchant-2.6.8/enchant-lsmod-2.html
  --> Deleting /usr/doc/enchant-2.6.8/enchant.html
  --> Deleting /usr/lib64/libenchant-2.so.2.6.8
  --> Deleting empty directory /usr/doc/enchant-2.6.8/
Verifying package enchant-2.6.6-x86_64-1.txz.
Installing package enchant-2.6.6-x86_64-1.txz:
PACKAGE DESCRIPTION:
# enchant (a wrapper for spellcheck libraries)
#
# Enchant supports:
#  * Aspell/Pspell
#  * Ispell
#  * MySpell/HunSpell
#  * Uspell (Yiddish, Hebrew and Eastern European languages)
#  * Hspell (Hebrew) and others
#
# Homepage: https://abiword.github.io/enchant/
#
Executing install script for enchant-2.6.6-x86_64-1.txz.
Package enchant-2.6.6-x86_64-1.txz installed.
Package enchant-2.6.8-x86_64-1 upgraded with new package /tmp/enchant-2.6.6-x86_64-1.txz.
Site note:
The mirror (slackware.uk) and the number of previous versions can be easily changed in the script

Last edited by marav; 03-27-2024 at 07:57 AM.
 
Old 03-27-2024, 08:10 AM   #2
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Rep: Reputation: Disabled
I'm not on current so I don't have use for this, but if I did I'd add the GPG check.
 
Old 03-27-2024, 11:21 AM   #3
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
This can be used with personal repos as well??

Last edited by reddog83; 03-27-2024 at 07:12 PM.
 
1 members found this post helpful.
Old 03-27-2024, 12:20 PM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Original Poster
Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by reddog83 View Post
This can be used with personal repos as??
You have a personal cumulative repo ?
 
Old 03-27-2024, 01:14 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Original Poster
Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by j12i View Post
I'm not on current so I don't have use for this, but if I did I'd add the GPG check.
Be my guest!
 
Old 03-27-2024, 07:12 PM   #6
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
Talking

Quote:
Originally Posted by marav View Post
You have a personal cumulative repo ?
Actually I do for Gnome version's.
 
Old 03-27-2024, 07:29 PM   #7
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Original Poster
Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by reddog83 View Post
Actually I do for Gnome version's.
This tool is mainly designed for official Slackware packages / cumulative repo (slackware.uk)
But it would be trivial to adapt it to other repositories
 
3 members found this post helpful.
Old 03-27-2024, 10:13 PM   #8
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,972

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
Nifty tool marav!


Tool added to my tool box. I don't normally need to revert packages but when I do I will use this nice script.
 
1 members found this post helpful.
Old 03-29-2024, 06:05 AM   #9
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 81

Rep: Reputation: Disabled
Very useful tool.

Isn't that a typo in the code stating "download success"

You have "install or delete". (i/R)

Shouldn't it be install or remove or (i/D)?
 
1 members found this post helpful.
Old 03-29-2024, 07:59 AM   #10
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,361

Original Poster
Rep: Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075Reputation: 4075
Quote:
Originally Posted by ethelack View Post
Very useful tool.

Isn't that a typo in the code stating "download success"

You have "install or delete". (i/R)

Shouldn't it be install or remove or (i/D)?
Thanks !

Catch the last commit, I made a few corrections
i.e.
(I/d) : Install is now the default option

Last edited by marav; 03-29-2024 at 08:01 AM.
 
1 members found this post helpful.
  


Reply



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
How to revert to previous version of PHP? Pindakaas Slackware 15 11-18-2013 05:12 PM
X11 - how to revert to a previous version cyberjean Linux - Software 3 04-13-2007 04:15 AM
FC5 - Can I revert or install a previous version? Skip-DMP Fedora 3 08-08-2006 12:11 PM
How to remove/reinstall OR revert X to a previous version? C38368 Linux - Newbie 1 05-26-2004 02:57 AM
how to revert back to the previous kernel version? prav_284 Red Hat 3 12-10-2003 03:51 AM

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

All times are GMT -5. The time now is 09:05 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
Open Source Consulting | Domain Registration