You are not logged in.

#1 2016-11-24 18:27:20

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

[solved] Downgrade packages from AUR

Hi,

i would like to get an old version of the numix-icon-theme-git package, because i need the old version for the wired-connection-icon. But Yaourt has no pkg-cache and i cant find it anywhere in the internet.

Is there a magic way, to do dat?

Last edited by Asbestbrezel (2016-11-24 21:48:43)

Offline

#2 2016-11-24 18:29:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] Downgrade packages from AUR

If it's a git package you can specify the git commit you wish to build (upstream code) but if you're wanting an older physical PKGBUILD, the AUR has a history you can pull from... see the 'view changes' link in the upper-right.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2016-11-24 18:34:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [solved] Downgrade packages from AUR

Asbestbrezel wrote:

But Yaourt has no pkg-cache

Yes it does:

man yaourtrc wrote:

EXPORT=0
Export built package to $EXPORTDIR or, if not defined to $PKGDEST (see makepkg.conf(5)). EXPORT=2 exports all built packages to pacman cache directory (see pacman.conf(5)).

So does makepkg:

man makepkg.conf wrote:

       PKGDEST="/path/to/directory"
If this value is not set, packages will, by default, be placed in the current directory (location of the PKGBUILD(5)). Many people like to keep all their packages in one place so this option allows for this behavior. A common location is “/home/packages”.

Configuring *either* one of those would keep previously built files around.

If you haven't configured either of these, then you are not caching old pkgs, so you will need to pull from the git commit you want and rebuild it as Graysky suggested.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-11-24 18:40:54

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [solved] Downgrade packages from AUR

ok, i will setup yaourt like this, so i wont get any of those problems again, thank you.

But how do i do this git-pulling thing. Sorry, but i dont know so much about github. On the git-page i can change to the "backup-branch" but there is already the new icon in it.

Offline

#5 2016-11-24 19:11:24

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [solved] Downgrade packages from AUR

Does this help? https://githowto.com/getting_old_versions

(found with an ixquick search for "git pull older version")

Last edited by 2ManyDogs (2016-11-24 19:13:43)

Offline

#6 2016-11-24 20:09:07

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: [solved] Downgrade packages from AUR

You don't need to keep a cache.  Use Graysky's post to modify pkgbuild of aur package.  I like to use cower. 

 cower -d numix-icon-theme-git

Then edit PKGBUILD in the source array.
Currently it says

source=('git+https://github.com/numixproject/numix-icon-theme.git')

You can point it to pull up to a certain commit.  See https://wiki.archlinux.org/index.php/VC … guidelines

source=('project_name::git+http://project_url#branch=project_branch')

Now you are set.  If you need to go forward or backward in commits, you can just edit PKGBUILD again and recompile.

Offline

#7 2016-11-24 21:48:26

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [solved] Downgrade packages from AUR

works. thank you!

Offline

#8 2016-11-24 21:50:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Downgrade packages from AUR

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB