make in ports versus pkg_add

2003-01-16 Thread paul van den bergen
Hi all,

dumb q warning

it seems to me that doing an install from /usr/ports/... is fine and all, but 
how do you do an uninstall?

ok, with pkg_remove or pkg_delete, this is not a problem... but how does pkg 
know???



-- 
Dr Paul van den Bergen
Centre for Advanced Internet Architectures
caia.swin.edu.au
[EMAIL PROTECTED]
IM:bulwynkl2002
would somebody get this big walking carpet out of my way?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make in ports versus pkg_add

2003-01-16 Thread Duncan Anker
On Fri, 2003-01-17 at 16:58, paul van den bergen wrote:
 Hi all,
 
 dumb q warning
 
 it seems to me that doing an install from /usr/ports/... is fine and all, but 
 how do you do an uninstall?

make deinstall

 
 ok, with pkg_remove or pkg_delete, this is not a problem... but how does pkg 
 know???

look in /var/db/pkg

 
-- 

The information contained in this email is confidential.
If you are not the intended recipient, you may not disclose or use the
information in this email in any way.
Dark Blue Sea does not guarantee the integrity of any emails or attached
files.
The views or opinions expressed are the author's own and may not reflect
the views or opinions of Dark Blue Sea.
Dark Blue Sea does not warrant that any attachments are free from
viruses or other defects.
You assume all liability for any loss, damage or other consequences
which may arise from opening or using the attachments.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make in ports versus pkg_add

2003-01-16 Thread Chris Doherty
On Fri, Jan 17, 2003 at 05:58:40PM +1100, paul van den bergen said: 
 Hi all,
 
 dumb q warning
 
 it seems to me that doing an install from /usr/ports/... is fine and all, but 
 how do you do an uninstall?
 
 ok, with pkg_remove or pkg_delete, this is not a problem... but how does pkg 
 know???

the pkg_* tools get that information from the directories in /var/db/pkg,
which contain files with dependencies and packing lists.

I prefer to use pkg_deinstall, which has support for wildcards and
dependency recursion (if I delete a package I can tell pkg_deinstall to
delete everything depending on that package, so I don't end up with
packages broken because I deleted something they need).

also note that pkg_* take specific package names, and not port names:
i.e. I have to use zip-2.3_1 and not just zip.

if the port version has not changed (e.g. the version of zip in
/usr/ports/archivers/zip is still 2.3), you can cd to the ports directory
and type make deinstall. it's always worth a shot: if the port version
has changed it will just say Port is not installed, with no harm done.

HTH,
Chris


---
Chris Doherty
chris [at] randomcamel.net

I think, said Christopher Robin, that we ought to eat
all our provisions now, so we won't have so much to carry.
   -- A. A. Milne
---

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message