Solved How can I tell pkg not to update the repository

How can I tell pkg not to update the repository everytime I want to install a package?
I just want to skip pkg updating the repository when I want to install a package. It takes too long, because I am in a VM, using a wifi-bridge and for some reason the LAN with 192.xxx.xx.x class ip takes ages to update the repo and then install packages. So that, I want to skip update repos and head straight to the installation...
 
I think it may not be a good idea to skip updating the repository catalogue, as package(s) may have been updated on the repository since the last install/upgrade.
 
Yeah, you run the risk of pkg(8) trying to fetch something that doesn't exist anymore. The locally cached catalog won't match with what's actually available on the server.

Reading the manual page can usually be quite enlightening:
Code:
     -U, --no-repo-update
		Suppress the automatic update of the local copy	of the reposi-
		tory catalogue from remote.  Automatic repository catalogue
		updates	are only attempted when	the effective UID of the
		process	has write access to the	package	database.  Otherwise
		they are silently ignored.

pkg-install(8)
 
Back
Top