söndag 19 april 2015

archinux - backup installed packages install on other computer own "repo" / "mirror"

# $ cd /home/hynt/
# $ mkdir repo
# $ cp -r /var/cache/pacman/pkg/  /home/hynt/repo
# $ comm -13 <(pacman -Qmq | sort) <(pacman -Qqe | sort) > /home/hynt/repo/pkg/pkglist
# $ cd repo
# $ cd pkg
# $ cat pkglist

# add local repo in mirrorlist

# $ sed -i -e '1iServer = file:///home/hynt/repo/pkg/\' /etc/pacman.d/mirrorlist

# install all packages on another computer

# $ cd /home/hynt/repo/pkg/ ; pacman -S $(cat pkglist)
Skicka en kommentar