# $ 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)
Inga kommentarer:
Skicka en kommentar