Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to do this? I just want a one-shot command to "update everything" over the command line? This is for a remote server so it must be over the command line.

I used:

$ sudo pkg list -u

to see the list of packages that are out of date, but I cannot for the life of me figure out how to say, "ok, update them".

I have scoured the web for clues, but to no avail :(

This is classic Sun Solaris-type patching that is the exact reason I am now on Linux.

Please help!! Thanks :)


share|improve this question
up vote 3 down vote accepted

In case someone else reads this:

sudo pkg image-update

and I guess you will need a glassfish restart after that...!

I actually found the answer here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.