You are not logged in.
Hi guys,
before starting to hack some dirty script on my own i would like to know if there's already any program/script which looks up the list of packages, which were installed from aur: pacman -Qqm, and rebuilds/exports them?
the reason why i ask: i have several machines running on arch64 and i need 50+ built packages to serve them in the intranet.
best regards
Last edited by broken pipe (2011-12-26 20:25:12)
Offline
Not sure what you mean by 'rebuilding', you can update the packages any way you want and share in a number of ways e.g. http://xyne.archlinux.ca/projects/pacserve/
You can create a local repo and add it to pacman.conf on these machines.
Offline
thx karol, i'm already using pacserve to avoid downloading packages for each machine in the network.
what i want to do is: read the output of 'pacman -Qqm' and rebuild + export the pkgs
i did a little bash script to achieve this. but i have to admit i'm not good at scripting but i gave my best
improvements are welcomed
#/bin/bash
pkglist=/tmp/pkglist
builddir=/dev/shm/$(date +%F)/
exportdir=~/aurpkgbuilds
# Create builddir
if [ ! -d "$builddir" ];then mkdir $builddir
fi
# Create exportdir
if [ ! -d "$exportdir" ];then mkdir $exportdir
fi
# Getting the list of pkgs which were installed from AUR
pacman -Qqm > $pkglist
# Edit the list?
read -p "Would you like to edit the list? (y/N) " edit
if test "$edit" = "y"; then
$EDITOR $pkglist
fi
for i in $(cat $pkglist); do
cd $builddir
wget http://aur.archlinux.org/packages/${i}/${i}.tar.gz
tar xvfz ${i}.tar.gz
cd ${i}
makepkg -f
mv *.pkg.tar.xz "$exportdir"
done
# Clean up
read -p "Would you like to remove the builddir? (y/N) " rmbuilddir
if test "$rmbuilddir" = "y"; then
rm -rf $builddir
fi
exit 0Offline
What about dependencies? You have to build stuff in the correct order.
I still don't know why do you want to rebuild all the packages.
Offline
Your packages may still be in your pacman cache: /var/cache/pacman/pkg/. Then, you don't have to rebuild them. There's also the Arch Rollback Machine, which has old packages.
Offline
@Proofrific
OP is talking about packages from the AUR.
Offline
thx for your responses!
rebuilding because i need them as pkg.tar.xz to redistribute them to 5 other machines running in the local network. needed pkgs will be added to a list, built and then added to a local repo ![]()
Offline
But you have them already installed so why not use bacman from pacman-contrib?
Offline
ok thanks! never heard of it before
... rebuilding is imho cleaner than gathering sth up and repacking but this is more or less what i was looking for ![]()
Offline
You can use makepkg's BUILDDIR and PKGDEST variables if you want.
Offline