Download Package Source Files

I wanted a way to easily download source files for quick editing. Sure abs and numerous AUR-helpers do it but I wanted a simple all-together program/script that could do it, and it turned out to be pretty easy. I wanted to be able to define the repository, and then the package and I did it!

pacpull extra/a52dec

aur/ can be used here as well as the other repositories. I set up /etc/abs.conf and $XDG_CONFIG_HOME/cower/config to use my pkgbuilds directory ~/.arch/pkgbuild (ABSROOT="/home/todd/.arch/pkgbuild", TargetDir = /home/todd/.arch/pkgbuild/aur respectively) so it looks pretty nice:

ls
aur  extra  own  testing

If the repository is wrong it will list the available repositories:

pacpull extar/a52dec
 Not a valid repository:
  core
  extra
  community
  multilib
  testing
  community-testing
  multilib-testing

And it’s nice and it’s basic:

About these ads

About Todd Partridge (Gently)

Good times, good people, good fun.

Posted on 2012-06-29, in Arch Linux, Script. Bookmark the permalink. 4 Comments.

  1. Nice! Very handy little script. How about throwing it in the AUR? :)

  2. Guess I could, will have to think about it a little more to see if I covered everything.

  3. But you now about pacman’s “-w” switch?

    pacman -Sw extra/a52dec – it will just download package to /var/cache/pacman/pkg/ without installation

  4. pacpull is for downloading the source-files (that is, for building the package(s)) not the packages themselves.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 52 other followers

%d bloggers like this: