Date: Sat, 29 Oct 2011 17:53:28 +0200 From: Huub van Niekerk <huubvanniekerk@gmail.com> To: Mike Clarke <jmc-freebsd2@milibyte.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: update packages by pkg_add Message-ID: <CAGyFPjJui6POBSu=gX-SBBy7ksMAH3eu9NRqPuiSnH5RVjUbJg@mail.gmail.com> In-Reply-To: <201110291401.08722.jmc-freebsd2@milibyte.co.uk> References: <j8grps$3m3$1@dough.gmane.org> <201110291401.08722.jmc-freebsd2@milibyte.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 29, 2011 at 3:01 PM, Mike Clarke <jmc-freebsd2@milibyte.co.uk>wrote: > 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 > Thank you for your answer. But how about if the package-to-be-replaced is a dependency? Just remember the dependency and do the same ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGyFPjJui6POBSu=gX-SBBy7ksMAH3eu9NRqPuiSnH5RVjUbJg>