update packages by pkg_add
Mike Clarke
jmc-freebsd2 at milibyte.co.uk
Sat Oct 29 13:31:15 UTC 2011
On Saturday 29 October 2011, hvn wrote:
> Using version 8.2, can somebody tell me how I can upgrade packages
> that I installed using pkg_add? I'm trying to install more packages
> but get messages that there are package-conflicts because of older
> installed version.
pkg_delete -f name-of-package
pkg_add name-of-package-file
The pkg_delete command needs the full name of the package including the
version number at the end. Since you're going to immediately re-install
the package you don't need to worry about any warning messages saying
that the package is needed by other packages.
The above pkg_add command will install a package from a file that you've
already downloaded. If you don't have the package file then you can
fetch and install the package from an FTP site with the command:
pkg_add -r name-of-package
--
Mike Clarke
More information about the freebsd-questions
mailing list