pkg upgrade -n

Everything related to Installing and maintaining software with pkg(pkgng).
Post Reply
User avatar
galasrinnion
Posts: 40
Joined: Tue Oct 28, 2014 12:45 pm
Has thanked: 0
Been thanked: 0

pkg upgrade -n

Post by galasrinnion »

Hi everybody

When invoking sudo pkg upgrade -n, is there a method for deleting some packages from that list, say for instance, Xorg-server ? and then continue with the rest of the packages upgrade ?

User avatar
ericbsd
Developer
Posts: 1525
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 47 times
Been thanked: 78 times

Re: pkg upgrade -n

Post by ericbsd »

This should do the what you want:
pkg lock xorg-server
and this to unlock all pkg lock.

Code: Select all

pkg unlock -a

User avatar
galasrinnion
Posts: 40
Joined: Tue Oct 28, 2014 12:45 pm
Has thanked: 0
Been thanked: 0

Re: pkg upgrade -n

Post by galasrinnion »

ericbsd wrote:This should do the what you want:
pkg lock xorg-server
and this to unlock all pkg lock.

Code: Select all

pkg unlock -a
That went well ! Thanks.

Code: Select all

# pkg lock xorg-server

Code: Select all

# pkg lock xorg-minimal

Code: Select all

# pkg lock xorg-drivers
THEN;

Code: Select all

# pkg upgrade
....answer y to all the above.

Post Reply