Reinstalling another hosts packages on a new host with pkg

A while back I had to reinstall my Raspberry Pi 2 due to a faulty SD card. I decided to try something with pkg and it worked well so I wanted to share it here.

I copied my pkg database from the old SD card and then ran pkg upgrade -f which worked exactly how I hoped, and installed all the packages that I had previously had installed.

I did have to change the url in my /usr/local/etc/pkg/repos/FreeBSD.conf to url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", from quarterly as FreeBSD:11:armv6/quarterly/ was not populated at the time. (it is now, just making a note of it)

This was all done on FreeBSD 11.0-RC1 #0 r303979: Fri Aug 12 17:12:13 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *