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 » Tue Oct 28, 2014 6:09 pm

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: 1271
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 16 times
Been thanked: 21 times

Re: pkg upgrade -n

Post by ericbsd » Sun Nov 02, 2014 8:45 am

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 » Wed Nov 05, 2014 3:12 pm

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