Script to revert to previous version
by marav from LinuxQuestions.org on (#6KND2)
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 :: ~ i pkg_cumul
Run this script as rootCode: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) ? 2Code: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) ? iCode:+==============================================================================
| 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
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 :: ~ i pkg_cumul
Run this script as rootCode: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) ? 2Code: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) ? iCode:+==============================================================================
| 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