FreeBSD verbose package installation

Software

If you're a real FreeBSD nerd you'd know about this already, but for those like me who are just experimenting maybe you'll find this useful.

If you find yourself installing packages a lot (say, KDE… ever tried compiling that from scratch? Wow!) and your internet connection isn't terribly reliable, if you enable to verbose output in the pkg_add command you can see exactly where the FreeBSD package manager is retrieving the files from and the success rate of transfers.

# pkg_add -rv NAME_OF_PACKAGE

That way, if something goes wrong you can see exactly where it failed. Haven't had to do this when I'm in Singapore but when I'm transferring using TMnet StreamyX here in Malaysia or the TPG broadband in Australia, it really makes things clearer.

As an added bonus as well, if you're doing this full screen on a desktop with code and transfer status lines flying across the screen in a green font, it looks as though you're in The Matrix. Swish.

The SOS-Dan stack!

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!