incomplete 'portupgrade -a' command

Lars Eighner luvbeastie at larseighner.com
Thu Apr 10 08:16:37 UTC 2008


On Thu, 10 Apr 2008, Aijaz Baig wrote:

> Hello,
>
> I installed 'portupgrade' on my system the other day and was mentioned in
> this <http://www.freebsd.org/doc/en/books/handbook/ports-using.html>document
> issued the following command after installlaing it.
>
> 'portupgrade -a'.
>
> After that my computer was like doing a hell lot of things which I suppose
> included updating the indices of the ports isn't it? Does 'portupgrade -a'
> updates only the indices of the various ports that are registered in the
> ports subdirectory or does it INSTALL all of them into the computer?

Portupgrade -a will attempt to upgrade all ports that are installed where
the installed version is not the current version.  This can be an arduous
and perilous task.  Reading UPGRADING in /usr/ports is recommended before
attempting it.

> If its the latter than I am kinda jacked I guess as I would have to see
> which ports have been installed and which ports have been left hanging and
> accordingly removed the unwanted ports and shred the stuff that has been
> downloaded without being installed.

If you did not install an older version of the port, the port will not be
installed. It is for *upgrading* as the name 'portupgrade' implies.
>
> While it was working my other applications almost froze and I couldn't do
> nothing so I issued something like 'ctrl+alt+F9' (I do not remember which
> function key it was) and the computer rebooted(I suppose that combination
> means reboot on the xfce).
>
> Due to this the 'portupgrade -a' command was left in the middle. SO I assume
> that there could have been instances wherein the source code or other such
> things might have been fetched without being installed.
>
> Can I use the 'portsclean -C' command mentioned on the same page in that
> document to clean the work directories of all the installed ports?

Yes.  However if you canceled portupgrade while it was updating the ports
database, you could have hosed the database, and that could lead to
problems.

-- 
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266



More information about the freebsd-questions mailing list