Reinstalling a package

Fbsd8 fbsd8 at a1poweruser.com
Thu Jul 1 09:56:33 UTC 2010


Alejandro Imass wrote:
> On Thu, Jul 1, 2010 at 2:10 AM, Chris Stankevitz
> <chrisstankevitz at yahoo.com> wrote:
>> http://lists.freebsd.org/pipermail/freebsd-gnome/2010-June/024394.html
>>
>> In the above post, a FreeBSD GNOME team member recommends "rebuilding and reinstalling sysutils/polkit, sysutils/policykit, and sysutils/consolekit".
>>
>> Q: How do I "rebuild and reinstall" these applications when they were installed originally via "pkg_add -r gnome2"?
>>
>> A: "pkg_add -r polkit" [fails with the message "already installed"]
> 
> I have the same problem and asked a while back but got no answer. My
> Gnome is partially broken because of a stupid libpng and libjpg
> upgrade and I would like to re-install the whole thing from binary.
> 
>> Thank you,
>>
>> Chris
To reinstall a package you must first delete it.
Do pkg_info | grep pkgname to get its full name.
Then pkg_delete fullpkgname
them pkg_add -r pkgname




More information about the freebsd-questions mailing list