Upgrade pkg without dependencies?

Is there a single command to directly UPGRADE a package that's been installed w/o its dependency?

Currently I do these steps, the first two being interchangeable:

pkg remove *
pkg fetch *
pkg add -M /directory where * is stored/*

It would be nice if there were a single command to do it all.
 
if you don't want a package (the dependency) to be upgraded, just lock it: pkg-lock(8). Then, you can use pkg upgrade NameOfYourPackage.

But, I wonder if it's what you want to achieve.
 
The dependency isn't installed at all, and I want to keep it that way.

Long story short:
  • Sonarr has a dependency of mono6.8.
  • Jackett has a dependency of mono5.20.
  • Both mono versions can't co-exist (I don't want to deal with jails)
  • Sonarr won't work with mono5.20, but jackett works with mono6.8, so I use mono6.8 for both.
  • But when I upgrade jackett, it wants to install mono5.20 (as well as remove mono6.8 and sonarr).
That's why I have to go through the multiple steps noted in my first post, and I'm hoping there's a single command that will accomplish the same thing.
 
  • Sonarr has a dependency of mono6.8.
  • Jackett has a dependency of mono5.20.
net-p2p/sonarr depends on "mono6.8>0:lang/mono6.8", but net-p2p/jackett not on 5.20; Instead there's a simple "USES= mono" - but: FreeBSDs default version still is 5.20, and that's why the binary package of jackett depends on this version… That's the usecase for going with ports instead of packages for just one package: jackett. Install everything, but not jackett, and you've got Mono 6.8 installed. But as the default Mono version is 5.20 you've got to change this to 6.8 for building own packages: Create (if not already exists) /etc/make.conf , and write in there "DEFAULT_VERSIONS+=mono=6.8". Now switch to /usr/ports/net-p2p/jackett, and execute there make install clean, and you should get jackett installed without Mono 5.20.

Untested, but that's how such things are solvable.
 
Thanks for the information, but I want to stay exclusively with packages. The three steps I currently use are not at all difficult or excessively time-consuming, but I'm lazy and was hoping for something even simpler!:)
 
Back
Top