pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

Downgrade

Open actionless opened this issue 7 years ago • 9 comments

for AUR: choose commit to which downgrade in interactive prompt (and next build just as normal -S/-P, with all the flags handled as --rebuild and so)

and for repo pkgs use downgrade util (or query archive directly for better batch processing) and if --rebuild was passed -- downgrade using ABS (pikaur -G , choose commit from the list, pikaur -P )

actionless avatar Jul 27 '18 19:07 actionless

Thanks for pikaur. It's the best AUR package manager ever.

+1 on this one -- the AUR package Liquibase 3.7.0 worked fine but the new 3.8.0 is totally broken for me. I had to downgrade by hand. (Took me all day to realize it's just a stupid bug in their new Java.)

lilole avatar Oct 15 '19 01:10 lilole

I use a home-made zsh script to downgrade faulty packets. I don't know if it can be integrated into Pikaur with some modifications., but I post it just in case.



#!/bin/zsh

HISTFILE=~/.histfile
VAR=`tail -n 1 ${HISTFILE}|tr -d "[0-9][:; ]"`
INSTALL=`echo -e "\033[3;32;1mEnter the name of the archive to be installed:\033[0;1;37m "`

if [ "$VAR" == "U" ]
	  then
        cd /var/cache/pacman/pkg/; echo
		  echo -e "\033[0;33;4m<TAB> for self-completion.\033[0m"

    read -e -p "$INSTALL" u
  pikaur -U $u

 	  else
        cd ~/.cache/pikaur/pkg/; echo
		  echo -e "\033[0;33;4m<TAB> for self-completion.\033[0m"

    read -e -p "$INSTALL" ua
  pikaur -U $ua

fi



Bundy01 avatar Apr 25 '20 21:04 Bundy01

@Bundy01 pikaur already have downgrade code for both repo and aur packages used in its tests (https://github.com/actionless/pikaur/blob/master/pikaur_test/helpers.py#L291-L342) however i'm too lazy to write CLI for it

actionless avatar Apr 25 '20 21:04 actionless

Okay, that's good to know. I didn't know that. Sorry for the unnecessary post.

Bundy01 avatar Apr 25 '20 22:04 Bundy01

no problem, if you'd like to contribute on implementing the CLI for downgrade i can help with starting points

actionless avatar Apr 25 '20 22:04 actionless

It would have been a pleasure, but unfortunately I only have bash and css notions :/

Bundy01 avatar Apr 25 '20 22:04 Bundy01

Can we add pikaur -G , choose commit from the list, pikaur -P to the documentation of help for explanation of dowgrading packages?

aemonge avatar Mar 30 '22 07:03 aemonge

@aemonge yes, feel free to add new entry to the FAQ of the README 👍

actionless avatar Mar 30 '22 09:03 actionless

https://github.com/actionless/pikaur/pull/643

d =^.^= b

aemonge avatar Apr 11 '22 13:04 aemonge