Re: pkg_delete yields 'no such package'

2011-07-24 Thread Toan Le
It's great by correcting package name. Thanks for your tips of '-x' 
option !!!

Regards,
Toan Le

On 7/25/2011 6:28 AM, b. f. wrote:

Matthew Seaman wrote:
On 24/07/2011 08:48, Toan H. Le wrote:

Either I use 'pkg_delete xorg-docs' or 'pkg_delete xorg-docs-1.4.1',
pkg_delete yields the error of 'no such package'. Checking via 'pkg_info'
and 'pkg_version' confirms the packages xorg-docs-1.4.1 installed. I think I
did not use the wrong command.

Hmmm...  That's a typo.  The package name is:

lucid-nonsense:...ports/x11/xorg-docs:% make -V PKGNAME
xorg-docs-1.4,1

Note the comma -- that's part of the version number, and needs to be
copied down verbatim for pkg_delete(1)

It is often convenient to use the -x or -X switches with these
utilities, or to use a glob, so that you only have to type part of the
full PKGNAME, e.g.:

pkg_delete xorg-docs\*
pkg_delete -x xorg-docs

Just make sure that the glob or regex that you use only applies to the
packages that you want the utilities to act upon, e.g.:

pkg_info -I xorg-docs\*
pkg_info -Ix xorg-docs

See the manpages of the utilities for details.

b.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: pkg_delete yields 'no such package'

2011-07-24 Thread b. f.
> Matthew Seaman wrote:
> On 24/07/2011 08:48, Toan H. Le wrote:
> > Either I use 'pkg_delete xorg-docs' or 'pkg_delete xorg-docs-1.4.1',
> > pkg_delete yields the error of 'no such package'. Checking via 'pkg_info'
> > and 'pkg_version' confirms the packages xorg-docs-1.4.1 installed. I think I
> > did not use the wrong command.
>
> Hmmm...  That's a typo.  The package name is:
>
> lucid-nonsense:...ports/x11/xorg-docs:% make -V PKGNAME
> xorg-docs-1.4,1
>
> Note the comma -- that's part of the version number, and needs to be
> copied down verbatim for pkg_delete(1)

It is often convenient to use the -x or -X switches with these
utilities, or to use a glob, so that you only have to type part of the
full PKGNAME, e.g.:

pkg_delete xorg-docs\*
pkg_delete -x xorg-docs

Just make sure that the glob or regex that you use only applies to the
packages that you want the utilities to act upon, e.g.:

pkg_info -I xorg-docs\*
pkg_info -Ix xorg-docs

See the manpages of the utilities for details.

b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: pkg_delete yields 'no such package'

2011-07-24 Thread Matthew Seaman
On 24/07/2011 08:48, Toan H. Le wrote:
> Either I use 'pkg_delete xorg-docs' or 'pkg_delete xorg-docs-1.4.1',
> pkg_delete yields the error of 'no such package'. Checking via 'pkg_info'
> and 'pkg_version' confirms the packages xorg-docs-1.4.1 installed. I think I
> did not use the wrong command.

Hmmm...  That's a typo.  The package name is:

lucid-nonsense:...ports/x11/xorg-docs:% make -V PKGNAME
xorg-docs-1.4,1

Note the comma -- that's part of the version number, and needs to be
copied down verbatim for pkg_delete(1)

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


pkg_delete yields 'no such package'

2011-07-24 Thread Toan H. Le
I installed FreeBSD for investigation purpose and reserve small hard disk
space for it. Partition comes to nearly full and I decide to delete some
'doc' packages.

Either I use 'pkg_delete xorg-docs' or 'pkg_delete xorg-docs-1.4.1',
pkg_delete yields the error of 'no such package'. Checking via 'pkg_info'
and 'pkg_version' confirms the packages xorg-docs-1.4.1 installed. I think I
did not use the wrong command.

Can anyone help me on this issue? I need to free some space to continue my
investigation.

-- 
Regards,

Toan H. Le
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: pkg_delete: unable to completely remove directory (pkgdb -F)

2009-09-17 Thread Roland Smith
On Thu, Sep 17, 2009 at 09:57:09PM +, Jeronimo Calvo wrote:
> Hi folks,
> 
> dealing with broken package (virtualbox which is driving me crazy)
> I am getting the following error everytime i try to deinstall it, to
> make a clean installation from source:
> 
> pkg_delete: unable to completely remove directory
> 
> any idea on how to manage to get rid of this error?

The package/ports system will not delete files unless it knows they came from
a package/port that is being deleted; it will not delete possible user-made
files, which is a Good Thing!

Apparently some file(s) were left in the directory in question. Have a look at
what they are. If they are part of VirtualBox, then the packing list for
virtualbox should be updated to include them, so that they will be deleted
when virtualbox is removed.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpcJ06XfZiqt.pgp
Description: PGP signature


Re: pkg_delete: unable to completely remove directory (pkgdb -F)

2009-09-17 Thread Dan Nelson
In the last episode (Sep 17), Jeronimo Calvo said:
> dealing with broken package (virtualbox which is driving me crazy) I
> am getting the following error everytime i try to deinstall it, to make a
> clean installation from source:
> 
> pkg_delete: unable to completely remove directory
> 
> any idea on how to manage to get rid of this error?

That is a warning that the packing list included a directory delete request,
but there were still files in it.  It could be a bug in the plist (not
specifying all the files the package installed), or it could be a shared
directory that another package installed other files into.  Regardless, it's
just a warning and the package was deleted.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


pkg_delete: unable to completely remove directory (pkgdb -F)

2009-09-17 Thread Jeronimo Calvo
Hi folks,

dealing with broken package (virtualbox which is driving me crazy)
I am getting the following error everytime i try to deinstall it, to
make a clean installation from source:

pkg_delete: unable to completely remove directory

any idea on how to manage to get rid of this error?

Cheers!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problems with pkg_delete *

2009-08-12 Thread Sdävtaker
Thanks for reply guys.
I did the rm in both directories and worked great, installing all again from
ports now.
Damian

On Wed, Aug 12, 2009 at 11:42, Saifi Khan wrote:

> On Wed, 12 Aug 2009, Sd?vtaker wrote:
>
> > Hi,
> > I want to clean up and start again the installation of pkg since i did a
> > broken update in python and qt and pretty much everything is broken
> > portupgrade never ends, doing make in ports crash pretty much all the
> time
> > ><.
> > I tried
> > # pkg_delete '*'
> > Segmentation fault (core dumped)
> > # pkg_delete 'kde*'
> > Segmentation fault (core dumped)
> > Failed both in multiuser so I tried to do this as monouser and was the
> same.
> > Im running
> > FreeBSD user.domain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24
> > 00:57:44 UTC 2009
> > r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
> > Any suggestions?
> > Thanks for any help.
> >
> > Damian
> >
>
> There was an earlier thread that discussed this issue
> http://www.mail-archive.com/freebsd-sta...@freebsd.org/msg101896.html
>
> Perhaps this may help you.
>
>
> thanks
> Saifi.
>
>


-- 
Sdävtaker prays to Rikku goddess for a good treasure.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problems with pkg_delete *

2009-08-12 Thread Saifi Khan
On Wed, 12 Aug 2009, Sd?vtaker wrote:

> Hi,
> I want to clean up and start again the installation of pkg since i did a
> broken update in python and qt and pretty much everything is broken
> portupgrade never ends, doing make in ports crash pretty much all the time
> ><.
> I tried
> # pkg_delete '*'
> Segmentation fault (core dumped)
> # pkg_delete 'kde*'
> Segmentation fault (core dumped)
> Failed both in multiuser so I tried to do this as monouser and was the same.
> Im running
> FreeBSD user.domain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24
> 00:57:44 UTC 2009
> r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
> Any suggestions?
> Thanks for any help.
> 
> Damian
> 

There was an earlier thread that discussed this issue
http://www.mail-archive.com/freebsd-sta...@freebsd.org/msg101896.html

Perhaps this may help you.


thanks
Saifi.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Problems with pkg_delete *

2009-08-12 Thread Tim Judd
On 8/12/09, Sdävtaker  wrote:
> Hi,
> I want to clean up and start again the installation of pkg since i did a
> broken update in python and qt and pretty much everything is broken
> portupgrade never ends, doing make in ports crash pretty much all the time
>><.
> I tried
> # pkg_delete '*'
> Segmentation fault (core dumped)
> # pkg_delete 'kde*'
> Segmentation fault (core dumped)

which is taking your current directory and trying to remove them.  not
gonna happen.

# pkg_delete -af

Try that, it removes all installed ports.  Alternatively, you can:
# rm /usr/local/* /var/db/pkg/*

and have the same result.

Good luck.

> Failed both in multiuser so I tried to do this as monouser and was the same.
> Im running
> FreeBSD user.domain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24
> 00:57:44 UTC 2009
> r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
> Any suggestions?
> Thanks for any help.
>
> Damian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Problems with pkg_delete *

2009-08-12 Thread Sdävtaker
Hi,
I want to clean up and start again the installation of pkg since i did a
broken update in python and qt and pretty much everything is broken
portupgrade never ends, doing make in ports crash pretty much all the time
><.
I tried
# pkg_delete '*'
Segmentation fault (core dumped)
# pkg_delete 'kde*'
Segmentation fault (core dumped)
Failed both in multiuser so I tried to do this as monouser and was the same.
Im running
FreeBSD user.domain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24
00:57:44 UTC 2009
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
Any suggestions?
Thanks for any help.

Damian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


FBSD 7.1-STABLE: pkg_delete: segmentation fault

2009-03-09 Thread O. Hartmann

Hello Everybody,
Since several days ago I get a segmentation fault on a FreeBSD 
7.1-STABLE/AMD64 box when invoking 'pkg_delete' on installed packages to 
delete them. This box has been most recently 'built-world' and I did a 
'make delete-files' and sibblings as a precaution - but I still get this 
error.
I suspect a DB47 issue (if this is possoble, but I don't know). How can 
the database be repaired without loosing informations about the 
installed packages and is this shown degmentation-fault issue a well 
known issue?


Thanks in advance,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


FreeBSD 7.1-STABLE/amd64: pkg_delete core dumps

2009-03-05 Thread O. Hartmann
Since several weeks now /usr/sbin/pkg_delete core dumps whenever I try 
to delete an obsolete package or portupgrade tries to do so.


The box is a Quad Core most recent FreeBSD 7.1-STABLE box as built world 
of today's sources.


Regards,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


pkg_delete core dumping on 7.1

2009-02-10 Thread Ross Penner
hey list,

I've recently upgraded my machine (FreeBSD 7.1-STABLE) and pkg_delete
is segfaulting and dumping it's core when trying to deinstall
packages. What makes it more bizzare is that it had worked right after
the upgrade and now it doesn't.

I know there's probably more information I could give to help but I'm
enough of a novice to not know what that is. Thanks for any
suggestions on how to proceed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: pkg_delete core dump

2008-11-18 Thread Tsu-Fan Cheng
it works!! thanks Mel.


TFC

On Tue, Nov 18, 2008 at 8:16 AM, Mel
<[EMAIL PROTECTED]> wrote:
> On Tuesday 18 November 2008 13:37:11 Tsu-Fan Cheng wrote:
>> Hi Mel,
>>the link to download the +CONTENTS file is here
>> http://www.megaupload.com/?d=YDKFRCZG, and you know what? I don't have
>> +REQUIRED_BY file.  thanks!!
>>
>> there is a empty entry in the +CONTENTS file:
>>
>> [snip]
>> @pkgdep linux-scim-libs-1.4.4
>> @comment DEPORIGIN:textproc/linux-scim-libs
>> @pkgdep
>> @comment $FreeBSD: ports/print/acroread8/pkg-plist,v 1.2 2008/04/13
>> 18:36:28 hrs Exp $
>
> That's definetely the cause of the crash. The patch below should guard against
> pkg_delete crashing.
> How this line got created in the first place, is very weird.
>
> I would run:
> grep -E '^@(pkgdep|name)[[:space:]]*$' /var/db/pkg/*/+CONTENTS
>
> Which would show all dependency lines and name directives that are empty.
> Maybe there's a common factor. For the moment my money is on linux-nvu as
> that would be the dependency that belongs at the empty spot:
> # make -C /usr/ports/print/acroread8 actual-package-depends | sort -u -t : -k
> 2
> linux-atk-1.9.1:accessibility/linux-atk
> linux-glib2-2.6.6_1:devel/linux-glib2
> linux_base-fc-4_13:emulators/linux_base-fc4
> linux-cairo-1.0.2:graphics/linux-cairo
> linux-jpeg-6b.34:graphics/linux-jpeg
> linux-png-1.2.8_2:graphics/linux-png
> linux-tiff-3.7.1:graphics/linux-tiff
> hicolor-icon-theme-0.10_2:misc/hicolor-icon-theme
> acroreadwrapper-0.0.20080906:print/acroreadwrapper
> linux-expat-1.95.8:textproc/linux-expat
> linux-scim-libs-1.4.4:textproc/linux-scim-libs
> linux-nvu-1.0:www/linux-nvu
> linux-fontconfig-2.2.3_7:x11-fonts/linux-fontconfig
> linux-hicolor-icon-theme-0.5_1:x11-themes/linux-hicolor-icon-theme
> linux-gtk2-2.6.10:x11-toolkits/linux-gtk2
> linux-pango-1.10.2:x11-toolkits/linux-pango
> linux-xorg-libs-6.8.2_5:x11/linux-xorg-libs
>
>
> --
> Mel
>
>
> Index: plist.c
> ===
> RCS file: /home/ncvs/src/usr.sbin/pkg_install/lib/plist.c,v
> retrieving revision 1.52
> diff -u -r1.52 plist.c
> --- plist.c 28 Mar 2007 05:33:52 -  1.52
> +++ plist.c 18 Nov 2008 12:51:02 -
> @@ -31,6 +31,11 @@
>  {
> PackingList tmp;
>
> +if( arg == NULL || arg[0] == '\0' )
> +{
> +   warnx("Invalid packing list line ignored");
> +   return;
> +}
> tmp = new_plist_entry();
> tmp->name = copy_string(arg);
> tmp->type = type;
> @@ -61,6 +66,11 @@
>  {
> PackingList tmp;
>
> +if( arg == NULL || arg[0] == '\0' )
> +{
> +   warnx("Invalid packing list line ignored");
> +   return;
> +}
> tmp = new_plist_entry();
> tmp->name = copy_string(arg);
> tmp->type = type;
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-18 Thread Mel
On Tuesday 18 November 2008 13:37:11 Tsu-Fan Cheng wrote:
> Hi Mel,
>the link to download the +CONTENTS file is here
> http://www.megaupload.com/?d=YDKFRCZG, and you know what? I don't have
> +REQUIRED_BY file.  thanks!!
>
> there is a empty entry in the +CONTENTS file:
>
> [snip]
> @pkgdep linux-scim-libs-1.4.4
> @comment DEPORIGIN:textproc/linux-scim-libs
> @pkgdep
> @comment $FreeBSD: ports/print/acroread8/pkg-plist,v 1.2 2008/04/13
> 18:36:28 hrs Exp $

That's definetely the cause of the crash. The patch below should guard against 
pkg_delete crashing.
How this line got created in the first place, is very weird.

I would run:
grep -E '^@(pkgdep|name)[[:space:]]*$' /var/db/pkg/*/+CONTENTS

Which would show all dependency lines and name directives that are empty. 
Maybe there's a common factor. For the moment my money is on linux-nvu as 
that would be the dependency that belongs at the empty spot:
# make -C /usr/ports/print/acroread8 actual-package-depends | sort -u -t : -k 
2
linux-atk-1.9.1:accessibility/linux-atk
linux-glib2-2.6.6_1:devel/linux-glib2
linux_base-fc-4_13:emulators/linux_base-fc4
linux-cairo-1.0.2:graphics/linux-cairo
linux-jpeg-6b.34:graphics/linux-jpeg
linux-png-1.2.8_2:graphics/linux-png
linux-tiff-3.7.1:graphics/linux-tiff
hicolor-icon-theme-0.10_2:misc/hicolor-icon-theme
acroreadwrapper-0.0.20080906:print/acroreadwrapper
linux-expat-1.95.8:textproc/linux-expat
linux-scim-libs-1.4.4:textproc/linux-scim-libs
linux-nvu-1.0:www/linux-nvu
linux-fontconfig-2.2.3_7:x11-fonts/linux-fontconfig
linux-hicolor-icon-theme-0.5_1:x11-themes/linux-hicolor-icon-theme
linux-gtk2-2.6.10:x11-toolkits/linux-gtk2
linux-pango-1.10.2:x11-toolkits/linux-pango
linux-xorg-libs-6.8.2_5:x11/linux-xorg-libs


-- 
Mel


Index: plist.c
===
RCS file: /home/ncvs/src/usr.sbin/pkg_install/lib/plist.c,v
retrieving revision 1.52
diff -u -r1.52 plist.c
--- plist.c 28 Mar 2007 05:33:52 -  1.52
+++ plist.c 18 Nov 2008 12:51:02 -
@@ -31,6 +31,11 @@
 {
 PackingList tmp;

+if( arg == NULL || arg[0] == '\0' )
+{
+   warnx("Invalid packing list line ignored");
+   return;
+}
 tmp = new_plist_entry();
 tmp->name = copy_string(arg);
 tmp->type = type;
@@ -61,6 +66,11 @@
 {
 PackingList tmp;

+if( arg == NULL || arg[0] == '\0' )
+{
+   warnx("Invalid packing list line ignored");
+   return;
+}
 tmp = new_plist_entry();
 tmp->name = copy_string(arg);
 tmp->type = type;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-18 Thread Tsu-Fan Cheng
Hi Mel,
   the link to download the +CONTENTS file is here
http://www.megaupload.com/?d=YDKFRCZG, and you know what? I don't have
+REQUIRED_BY file.  thanks!!

there is a empty entry in the +CONTENTS file:

[snip]
@pkgdep linux-scim-libs-1.4.4
@comment DEPORIGIN:textproc/linux-scim-libs
@pkgdep
@comment $FreeBSD: ports/print/acroread8/pkg-plist,v 1.2 2008/04/13
18:36:28 hrs Exp $
[snip]

TFC

On Tue, Nov 18, 2008 at 12:51 AM, Mel
<[EMAIL PROTECTED]> wrote:
> On Tuesday 18 November 2008 05:18:37 Mel wrote:
>> On Monday 17 November 2008 22:15:32 Tsu-Fan Cheng wrote:
>> > Hi Mel,
>> >thank you for your help, now I recompile pkg_install and run
>> > pkg_delete again, under print/acroread8 it still coredump. here is the
>> > result:
>> >
>> > # gdb pkg_delete pkg_delete.core
>> > GNU gdb 6.1.1 [FreeBSD]
>> > Copyright 2004 Free Software Foundation, Inc.
>> > GDB is free software, covered by the GNU General Public License, and you
>> > are welcome to change it and/or distribute copies of it under certain
>> > conditions. Type "show copying" to see the conditions.
>> > There is absolutely no warranty for GDB.  Type "show warranty" for
>> > details. This GDB was configured as "i386-marcel-freebsd"...
>> > Core was generated by `pkg_delete'.
>> > Program terminated with signal 11, Segmentation fault.
>> > Reading symbols from /lib/libmd.so.4...done.
>> > Loaded symbols for /lib/libmd.so.4
>> > Reading symbols from /lib/libc.so.7...done.
>> > Loaded symbols for /lib/libc.so.7
>> > Reading symbols from /libexec/ld-elf.so.1...done.
>> > Loaded symbols for /libexec/ld-elf.so.1
>> > #0  0x2815dae6 in strcmp () from /lib/libc.so.7
>> > (gdb) bt
>> > #0  0x2815dae6 in strcmp () from /lib/libc.so.7
>> > #1  0x0804b50c in isinstalledpkg (name=0x0)
>> > at /usr/src/usr.sbin/pkg_install/lib/match.c:374
>>
>> There's the culprit. strcmp called on a null pointer. The reason is that
>> the +CONTENTS file contains corrupted data. Most likely a @pkgdep line
>> without a package name. Could you show the output of:
>> grep @pkgdep /var/db/pkg/acroread8-8.1.2_2/+CONTENTS
>
> Actually, considering it comes from undepend, could you also include:
> cat /var/db/pkg/acroread8-8.1.2_2/+REQUIRED_BY
>
> --
> Mel
>
> Problem with today's modular software: they start with the modules
>and never get to the software part.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-17 Thread Mel
On Tuesday 18 November 2008 05:18:37 Mel wrote:
> On Monday 17 November 2008 22:15:32 Tsu-Fan Cheng wrote:
> > Hi Mel,
> >thank you for your help, now I recompile pkg_install and run
> > pkg_delete again, under print/acroread8 it still coredump. here is the
> > result:
> >
> > # gdb pkg_delete pkg_delete.core
> > GNU gdb 6.1.1 [FreeBSD]
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you
> > are welcome to change it and/or distribute copies of it under certain
> > conditions. Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details. This GDB was configured as "i386-marcel-freebsd"...
> > Core was generated by `pkg_delete'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /lib/libmd.so.4...done.
> > Loaded symbols for /lib/libmd.so.4
> > Reading symbols from /lib/libc.so.7...done.
> > Loaded symbols for /lib/libc.so.7
> > Reading symbols from /libexec/ld-elf.so.1...done.
> > Loaded symbols for /libexec/ld-elf.so.1
> > #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> > (gdb) bt
> > #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> > #1  0x0804b50c in isinstalledpkg (name=0x0)
> > at /usr/src/usr.sbin/pkg_install/lib/match.c:374
>
> There's the culprit. strcmp called on a null pointer. The reason is that
> the +CONTENTS file contains corrupted data. Most likely a @pkgdep line
> without a package name. Could you show the output of:
> grep @pkgdep /var/db/pkg/acroread8-8.1.2_2/+CONTENTS

Actually, considering it comes from undepend, could you also include:
cat /var/db/pkg/acroread8-8.1.2_2/+REQUIRED_BY

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-17 Thread Mel
On Monday 17 November 2008 22:15:32 Tsu-Fan Cheng wrote:
> Hi Mel,
>thank you for your help, now I recompile pkg_install and run
> pkg_delete again, under print/acroread8 it still coredump. here is the
> result:
>
> # gdb pkg_delete pkg_delete.core
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are welcome to change it and/or distribute copies of it under certain
> conditions. Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd"...
> Core was generated by `pkg_delete'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib/libmd.so.4...done.
> Loaded symbols for /lib/libmd.so.4
> Reading symbols from /lib/libc.so.7...done.
> Loaded symbols for /lib/libc.so.7
> Reading symbols from /libexec/ld-elf.so.1...done.
> Loaded symbols for /libexec/ld-elf.so.1
> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> (gdb) bt
> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> #1  0x0804b50c in isinstalledpkg (name=0x0)
> at /usr/src/usr.sbin/pkg_install/lib/match.c:374

There's the culprit. strcmp called on a null pointer. The reason is that the 
+CONTENTS file contains corrupted data. Most likely a @pkgdep line without a 
package name. Could you show the output of:
grep @pkgdep /var/db/pkg/acroread8-8.1.2_2/+CONTENTS

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-17 Thread Tsu-Fan Cheng
Hi Mel,
   thank you for your help, now I recompile pkg_install and run
pkg_delete again, under print/acroread8 it still coredump. here is the
result:

# gdb pkg_delete pkg_delete.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `pkg_delete'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libmd.so.4...done.
Loaded symbols for /lib/libmd.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2815dae6 in strcmp () from /lib/libc.so.7
(gdb) bt
#0  0x2815dae6 in strcmp () from /lib/libc.so.7
#1  0x0804b50c in isinstalledpkg (name=0x0)
at /usr/src/usr.sbin/pkg_install/lib/match.c:374
#2  0x0804adc5 in requiredby (pkgname=0x0, list=0xbfbfe1a8, strict=0, filter=0)
at /usr/src/usr.sbin/pkg_install/lib/deps.c:202
#3  0x08049c14 in undepend (p=0x0, pkgname=0x810b180 "acroread8-8.1.2_2")
at /usr/src/usr.sbin/pkg_install/delete/perform.c:385
#4  0x0804a769 in pkg_do (pkg=0x810b180 "acroread8-8.1.2_2")
at /usr/src/usr.sbin/pkg_install/delete/perform.c:286
#5  0x0804a981 in pkg_perform (pkgs=0x810c060)
at /usr/src/usr.sbin/pkg_install/delete/perform.c:112
#6  0x08049b2a in real_main (argc=3, argv=0xbfbfeb60)
at /usr/src/usr.sbin/pkg_install/delete/main.c:163
#7  0x0804ab58 in main (argc=3, argv=0xbfbfeb60)
at /usr/src/usr.sbin/pkg_install/lib/pkgwrap.c:88
(gdb) bt full
#0  0x2815dae6 in strcmp () from /lib/libc.so.7
No symbol table info available.
#1  0x0804b50c in isinstalledpkg (name=0x0)
at /usr/src/usr.sbin/pkg_install/lib/match.c:374
result = Variable "result" is not available.
(gdb) up
#1  0x0804b50c in isinstalledpkg (name=0x0)
at /usr/src/usr.sbin/pkg_install/lib/match.c:374
374 if (strcmp(memo->iip_name, name) == 0)
(gdb)

should I do a full buildworld/installworld?


TFC



On Mon, Nov 17, 2008 at 2:36 PM, Mel
<[EMAIL PROTECTED]> wrote:
> On Monday 17 November 2008 20:15:46 Tsu-Fan Cheng wrote:
>> hi,
>> during recompiling some ports, I found my pkg_delete core dump on
>> some ports (not all of them), when it dumped, it has something like
>> this (print/acroread8):
>>
>> # gdb pkg_delete pkg_delete.core
>> GNU gdb 6.1.1 [FreeBSD]
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are welcome to change it and/or distribute copies of it under certain
>> conditions. Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for details.
>> This GDB was configured as "i386-marcel-freebsd"...(no debugging
>> symbols found)...
>> Core was generated by `pkg_delete'.
>> Program terminated with signal 11, Segmentation fault.
>> Reading symbols from /lib/libmd.so.4...(no debugging symbols found)...done.
>> Loaded symbols for /lib/libmd.so.4
>> Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
>> Loaded symbols for /lib/libc.so.7
>> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
>> found)...done. Loaded symbols for /libexec/ld-elf.so.1
>> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
>> (gdb) bt full
>> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
>> No symbol table info available.
>> #1  0x0804b50c in ?? ()
>> No symbol table info available.
>
> 
>
> You will have to recompile pkg_delete with debug symbols to get any idea. To
> do so, do the following (providing you have sources in /usr/src):
> cd /usr/src/usr.sbin/pkg_install
> make clean
> make obj
> make DEBUG_FLAGS='-ggdb' depend
> make DEBUG_FLAGS='-ggdb' all install
>
> If this gives errors, it's best to do a full buildworld/installworld.
> --
> Mel
>
> Problem with today's modular software: they start with the modules
>and never get to the software part.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete core dump

2008-11-17 Thread Mel
On Monday 17 November 2008 20:15:46 Tsu-Fan Cheng wrote:
> hi,
> during recompiling some ports, I found my pkg_delete core dump on
> some ports (not all of them), when it dumped, it has something like
> this (print/acroread8):
>
> # gdb pkg_delete pkg_delete.core
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are welcome to change it and/or distribute copies of it under certain
> conditions. Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd"...(no debugging
> symbols found)...
> Core was generated by `pkg_delete'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib/libmd.so.4...(no debugging symbols found)...done.
> Loaded symbols for /lib/libmd.so.4
> Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
> Loaded symbols for /lib/libc.so.7
> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
> found)...done. Loaded symbols for /libexec/ld-elf.so.1
> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> (gdb) bt full
> #0  0x2815dae6 in strcmp () from /lib/libc.so.7
> No symbol table info available.
> #1  0x0804b50c in ?? ()
> No symbol table info available.



You will have to recompile pkg_delete with debug symbols to get any idea. To 
do so, do the following (providing you have sources in /usr/src):
cd /usr/src/usr.sbin/pkg_install
make clean
make obj
make DEBUG_FLAGS='-ggdb' depend
make DEBUG_FLAGS='-ggdb' all install

If this gives errors, it's best to do a full buildworld/installworld.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete core dump

2008-11-17 Thread Tsu-Fan Cheng
hi,
during recompiling some ports, I found my pkg_delete core dump on
some ports (not all of them), when it dumped, it has something like
this (print/acroread8):

# gdb pkg_delete pkg_delete.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging
symbols found)...
Core was generated by `pkg_delete'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libmd.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libmd.so.4
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2815dae6 in strcmp () from /lib/libc.so.7
(gdb) bt full
#0  0x2815dae6 in strcmp () from /lib/libc.so.7
No symbol table info available.
#1  0x0804b50c in ?? ()
No symbol table info available.
#2  0x0810b1a0 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.
#4  0x in ?? ()
No symbol table info available.
#5  0x in ?? ()
No symbol table info available.
#6  0x in ?? ()
No symbol table info available.
#7  0x in ?? ()
No symbol table info available.
#8  0x in ?? ()
No symbol table info available.
#9  0x in ?? ()
No symbol table info available.
#10 0x in ?? ()
No symbol table info available.
#11 0x0810b180 in ?? ()
---Type  to continue, or q  to quit---
No symbol table info available.
#12 0xbfbfd968 in ?? ()
No symbol table info available.
#13 0x0804adc5 in ?? ()
No symbol table info available.
#14 0x in ?? ()
No symbol table info available.
#15 0x000c in ?? ()
No symbol table info available.
#16 0x03e1 in ?? ()
No symbol table info available.
#17 0x28174af5 in fwrite () from /lib/libc.so.7
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
(gdb)

any idea?? thanks!!

TFC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


seg fault when pkg_delete

2008-11-17 Thread Tsu-Fan Cheng
Hi,
   I have some trouble when "make deinstall/pkg_delete" some ports. I
try to backtrace with gdb, and here is what I found when exec
pkg_delete under gdb to remove p5-Module-Build-0.30:

0x2815dae6 in strcmp () from /lib/libc.so.7

any idea?? thanks!!

TFC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: pkg_delete delete files even if md5 check fails

2008-11-07 Thread Johan Hendriks
Yes off course it does!
I thought it only deleted the package even if other packages depends on it.
Sorry for the somewhat stupid question.

Regards,
Johan Hendriks


-Oorspronkelijk bericht-
Van: Jeremy Chadwick [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 7 november 2008 15:28
Aan: Johan Hendriks
CC: freebsd-questions@freebsd.org
Onderwerp: Re: pkg_delete delete files even if md5 check fails

On Fri, Nov 07, 2008 at 03:25:30PM +0100, Johan Hendriks wrote:
> How can i tell pkg_delete to delete all files of a package even if the md5 
> checks fail?

Does the -f flag do this?

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |


No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.9.0/1771 - Release Date: 6-11-2008 20:23

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.9.0/1771 - Release Date: 6-11-2008 20:23
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete delete files even if md5 check fails

2008-11-07 Thread Jeremy Chadwick
On Fri, Nov 07, 2008 at 03:25:30PM +0100, Johan Hendriks wrote:
> How can i tell pkg_delete to delete all files of a package even if the md5 
> checks fail?

Does the -f flag do this?

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete delete files even if md5 check fails

2008-11-07 Thread Johan Hendriks
How can i tell pkg_delete to delete all files of a package even if the md5 
checks fail?

 

Regards,

Johan Hendriks

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-31 Thread Mon Si
Peter Boosten wrote, on 12/30/07 18:04:
> Quoting Eric Crist <[EMAIL PROTECTED]>:
>> On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:
>>> Mon Si wrote:
>>>> Dear list,
>>>> I'm experiencing problems when I try to portupgrade the
>>>> xorg-driver port. The old version of the port can't be
>>>> uninstalled during the portupgrade due to an undefined prefix.
>>>> The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
>>>> Does anybody know how to upgrade / remove this port?
>>>> Thanks in advance,
>>>> Simon
>>>
>>> If nothing else works, you could try
>>> rm -rf /var/db/pkg/xorg-drivers-7.3
>>
>> If I remember correctly, there are detailed instructions in
>> /usr/ports/UPDATING -- go back to notes for sometime in May of
>> 2007, and there's a really long entry on upgraded to Xorg 7.x
>> from 6.9.  I think the entry specifically mentions 7.2, but it
>> should work for 7.3 as well.
>>
>
> The following worked for me: In
> /usr/ports/x11-drivers/xorg-drivers do make config
>
> then portupgrade -f xorg-drivers
>
> Peter
>

Thanks a lot for the suggestions!
Removing /var/db/pkg/xorg-drivers-7.3 worked, the "make config &&
portupgrade -f xorg-drivers" method gave me the same error message
as before.

However I don't really understand why this prefix thing shows up
well after the upgrade from 6.9 to 7.2. Perhaps I cvsup'd at a bad
time.

Simon

-- 














































-- 























-- 

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-30 Thread Peter Boosten

Quoting Eric Crist <[EMAIL PROTECTED]>:


On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:


Mon Si wrote:

Dear list,
I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
Does anybody know how to upgrade / remove this port?
Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3


If I remember correctly, there are detailed instructions in
/usr/ports/UPDATING -- go back to notes for sometime in May of 2007,
and there's a really long entry on upgraded to Xorg 7.x from 6.9.  I
think the entry specifically mentions 7.2, but it should work for 7.3
as well.



The following worked for me: In /usr/ports/x11-drivers/xorg-drivers do
make config

then portupgrade -f xorg-drivers

Peter

--
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Tim Kellers

If you vi /usr/ports/UPDATING and search for fearless, it comes right up:

20070519:
 AFFECTS: users of Xorg
 AUTHOR: [EMAIL PROTECTED]

 Welcome, fearless user!  You are about to embark upon a mystical
 journey to the world of xorg 7.2.


Eric Crist wrote:

On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:


Mon Si wrote:

Dear list,
I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
Does anybody know how to upgrade / remove this port?
Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3


If I remember correctly, there are detailed instructions in 
/usr/ports/UPDATING -- go back to notes for sometime in May of 2007, 
and there's a really long entry on upgraded to Xorg 7.x from 6.9.  I 
think the entry specifically mentions 7.2, but it should work for 7.3 
as well.


HTH
-
Eric F Crist
Secure Computing Networks


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Eric Crist

On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:


Mon Si wrote:

Dear list,
I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
Does anybody know how to upgrade / remove this port?
Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3


If I remember correctly, there are detailed instructions in /usr/ports/ 
UPDATING -- go back to notes for sometime in May of 2007, and there's  
a really long entry on upgraded to Xorg 7.x from 6.9.  I think the  
entry specifically mentions 7.2, but it should work for 7.3 as well.


HTH
-
Eric F Crist
Secure Computing Networks


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Stephen Montgomery-Smith

Mon Si wrote:

Dear list,

I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"

Does anybody know how to upgrade / remove this port?

Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Mon Si
Dear list,

I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"

Does anybody know how to upgrade / remove this port?

Thanks in advance,
Simon
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_deinstall and pkg_delete

2007-07-31 Thread Rakhesh Sasidharan


On Tue, 31 Jul 2007, Aton A wrote:


What exactly is the difference between pkg_delete and pkg_deinstall?
Should I be cautious about mixing them?


Nopes, can mix them. pkg_deinstall uses pkg_delete infact. Just that it 
understands wildcards and supports recursing.


pkg_deinstall is especially useful want to delete a package and all the 
stuff that was installed by it as dependencies ...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_deinstall and pkg_delete

2007-07-31 Thread youshi10

On Tue, 31 Jul 2007, Aton A wrote:


What exactly is the difference between pkg_delete and pkg_deinstall?
Should I be cautious about mixing them?


See <http://lists.freebsd.org/pipermail/freebsd-questions/2004-May/046194.html> 
for more discussion. I don't see this as an issue though because pkg_deinstall 
supports wildcards and patterns now.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_deinstall and pkg_delete

2007-07-31 Thread Aton A
What exactly is the difference between pkg_delete and pkg_deinstall?
Should I be cautious about mixing them?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-05 Thread Mikhail Goriachev
RW wrote:
> On Monday 05 June 2006 12:07, Mikhail Goriachev wrote:
>> RW wrote:
>>> On Friday 02 June 2006 08:53, Mikhail Goriachev wrote:
>>>> Jon Falconer wrote:
>>>>> Greetings,
>>>>>
>>>>> I see in the man page for ports the following:
>>>>>
>>>>>  reinstallUse this to restore a port after using
>>>>> pkg_delete(1) when you should have used deinstall.
>>>>>
>>>>> So I'm wondering what is the difference between pkg_delete and using
>>>>> "make deinstall" from within the ports directory? What does "make
>>>>> deinstall" do that pkg_delete does not do? What does pkg_delete do that
>>>>> "make deinstall" does not do?
>>>> Hi,
>>>>
>>>> This will point you in the right direction:
>>>>
>>>> http://www.bsdforums.org/forums/archive/index.php/t-29467.html
>>> Actually I think that points in wrong direction. There is a lot of
>>> misinformation about this that is repeated ad-nauseum.
>>>
>>> Most ports use the standard deinstall target which calls pkg_delete;
>>> there is only one port in the whole tree that defines it own deinstall
>>> target, and that one installs its own versions of the pkg_* utilities.
>>>
>>> The port system uses a series of cookie files to keep track of what has
>>> been done. For example if you type "make && make" the port will only
>>> build once, because the first make sets the "build cookie". There is also
>>> an Install cookie which leads to a problem when you go through the
>>> sequence
>>>
>>> make install
>>> pkg_delete
>>> make install
>>>
>>> because pkg_delete doesn't know about the port cookies. The deinstall and
>>> reinstall targets both delete the cookie and so using one or the other
>>> avoids the problem.
>>>
>>> In practice this is virtually a non-issue since most people, and all
>>> build tools, will do a make clean at some point in the sequence.
>> Right, so pkg_deinstall is the way to go then, isn't? Logically, there
>> is a difference between pkg_delete and pkg_deinstall. Personally, I use
>> the latter.
> 
> The question was about the difference between "make deinstall" and pkg_delete.
> 
> pkg_deinstall  (installed by the portupgrade port) is simply a ruby wrapper 
> for pkg_delete that provides globbing and recursion. There is no particular 
> correpondence between pkg_deinstall and "make deinstall" except for the 
> similar name.


Ah, now I see what you mean about cookies. I guess this is valid when
you don't want to clean a port. In my case, I install and clean it right
away... the cookie disappears in the process.

make install clean
pkg_deinstall
make install clean

Is this the only issue between pkg_delete and make deinstall?


Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-05 Thread RW
On Monday 05 June 2006 16:37, Ian A. Tegebo wrote:

>  I'm not sure what the man page author meant
> by
>   Use this to restore a port after using pkg_delete(1)
> when you should have used deinstall.
>
> Can someone with more experience give examples that might clarify the
> situation?

It's to do with the cookie. Read back through the thread, I've already given 
an example.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-05 Thread Ian A. Tegebo
On Thu, Jun 01, 2006 at 11:08:14AM -0700, Jon Falconer wrote:
> So I'm wondering what is the difference between pkg_delete and using "make
> deinstall" from within the ports directory? What does "make deinstall" do
> that pkg_delete does not do? What does pkg_delete do that "make deinstall"
> does not do?
After spending some time with /usr/ports/Mk/bsd.port.mk and the man page
for pkg_delete, I think I'm just as confused as you are.  As you
mention, the man page for ports seems to imply that pkg_delete is a bad
thing and that you should use 'make deinstall'.

My analysis of 'make deinstall' in bsd.port.mk concludes that the
deinstall target calls 'pkg_delete -f' on the package names supplied by
pkg_info.  I'm not entirely sure what implications this has for the
installation cookies.

If you were to only use pkg_delete, some things might go wrong.  For
example in the Technical Details section, it mentions the 'require' and
the 'deinstall' scripts that can fail during a pkg_delete.  A 
'pkg_delete -f' would force the issue (and that's what 'make deinstall' 
does).

Getting back to the 'make reinstall' target, it appears that all it does
is 'rm -f' the installation and package cookies before running install.
My conclusion is confusion.  I'm not sure what the man page author meant
by 
Use this to restore a port after using pkg_delete(1)
when you should have used deinstall.

Can someone with more experience give examples that might clarify the
situation?


--
Ian Tegebo
Residential Computing
University of California Berkeley
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-05 Thread RW
On Monday 05 June 2006 12:07, Mikhail Goriachev wrote:
> RW wrote:
> > On Friday 02 June 2006 08:53, Mikhail Goriachev wrote:
> >> Jon Falconer wrote:
> >>> Greetings,
> >>>
> >>> I see in the man page for ports the following:
> >>>
> >>>  reinstallUse this to restore a port after using
> >>> pkg_delete(1) when you should have used deinstall.
> >>>
> >>> So I'm wondering what is the difference between pkg_delete and using
> >>> "make deinstall" from within the ports directory? What does "make
> >>> deinstall" do that pkg_delete does not do? What does pkg_delete do that
> >>> "make deinstall" does not do?
> >>
> >> Hi,
> >>
> >> This will point you in the right direction:
> >>
> >> http://www.bsdforums.org/forums/archive/index.php/t-29467.html
> >
> > Actually I think that points in wrong direction. There is a lot of
> > misinformation about this that is repeated ad-nauseum.
> >
> > Most ports use the standard deinstall target which calls pkg_delete;
> > there is only one port in the whole tree that defines it own deinstall
> > target, and that one installs its own versions of the pkg_* utilities.
> >
> > The port system uses a series of cookie files to keep track of what has
> > been done. For example if you type "make && make" the port will only
> > build once, because the first make sets the "build cookie". There is also
> > an Install cookie which leads to a problem when you go through the
> > sequence
> >
> > make install
> > pkg_delete
> > make install
> >
> > because pkg_delete doesn't know about the port cookies. The deinstall and
> > reinstall targets both delete the cookie and so using one or the other
> > avoids the problem.
> >
> > In practice this is virtually a non-issue since most people, and all
> > build tools, will do a make clean at some point in the sequence.
>
> Right, so pkg_deinstall is the way to go then, isn't? Logically, there
> is a difference between pkg_delete and pkg_deinstall. Personally, I use
> the latter.

The question was about the difference between "make deinstall" and pkg_delete.

pkg_deinstall  (installed by the portupgrade port) is simply a ruby wrapper 
for pkg_delete that provides globbing and recursion. There is no particular 
correpondence between pkg_deinstall and "make deinstall" except for the 
similar name. 





 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-05 Thread Mikhail Goriachev
RW wrote:
> On Friday 02 June 2006 08:53, Mikhail Goriachev wrote:
>> Jon Falconer wrote:
>>> Greetings,
>>>
>>> I see in the man page for ports the following:
>>>
>>>  reinstall    Use this to restore a port after using
>>> pkg_delete(1) when you should have used deinstall.
>>>
>>> So I'm wondering what is the difference between pkg_delete and using
>>> "make deinstall" from within the ports directory? What does "make
>>> deinstall" do that pkg_delete does not do? What does pkg_delete do that
>>> "make deinstall" does not do?
>> Hi,
>>
>> This will point you in the right direction:
>>
>> http://www.bsdforums.org/forums/archive/index.php/t-29467.html
> 
> Actually I think that points in wrong direction. There is a lot of 
> misinformation about this that is repeated ad-nauseum.
> 
> Most ports use the standard deinstall target which calls pkg_delete; there is 
> only one port in the whole tree that defines it own deinstall target, and 
> that one installs its own versions of the pkg_* utilities. 
> 
> The port system uses a series of cookie files to keep track of what has been 
> done. For example if you type "make && make" the port will only build once, 
> because the first make sets the "build cookie". There is also an Install 
> cookie which leads to a problem when you go through the sequence
> 
> make install
> pkg_delete
> make install
> 
> because pkg_delete doesn't know about the port cookies. The deinstall and 
> reinstall targets both delete the cookie and so using one or the other avoids 
> the problem.  
> 
> In practice this is virtually a non-issue since most people, and all build 
> tools, will do a make clean at some point in the sequence.


Right, so pkg_deinstall is the way to go then, isn't? Logically, there
is a difference between pkg_delete and pkg_deinstall. Personally, I use
the latter.


Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-04 Thread RW
On Friday 02 June 2006 08:53, Mikhail Goriachev wrote:
> Jon Falconer wrote:
> > Greetings,
> >
> > I see in the man page for ports the following:
> >
> >  reinstallUse this to restore a port after using
> > pkg_delete(1) when you should have used deinstall.
> >
> > So I'm wondering what is the difference between pkg_delete and using
> > "make deinstall" from within the ports directory? What does "make
> > deinstall" do that pkg_delete does not do? What does pkg_delete do that
> > "make deinstall" does not do?
>
> Hi,
>
> This will point you in the right direction:
>
> http://www.bsdforums.org/forums/archive/index.php/t-29467.html

Actually I think that points in wrong direction. There is a lot of 
misinformation about this that is repeated ad-nauseum.

Most ports use the standard deinstall target which calls pkg_delete; there is 
only one port in the whole tree that defines it own deinstall target, and 
that one installs its own versions of the pkg_* utilities. 

The port system uses a series of cookie files to keep track of what has been 
done. For example if you type "make && make" the port will only build once, 
because the first make sets the "build cookie". There is also an Install 
cookie which leads to a problem when you go through the sequence

make install
pkg_delete
make install

because pkg_delete doesn't know about the port cookies. The deinstall and 
reinstall targets both delete the cookie and so using one or the other avoids 
the problem.  

In practice this is virtually a non-issue since most people, and all build 
tools, will do a make clean at some point in the sequence.
















___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: difference between deinstall and pkg_delete?

2006-06-02 Thread Mikhail Goriachev
Jon Falconer wrote:
> Greetings,
> 
> I see in the man page for ports the following:
> 
>  reinstallUse this to restore a port after using pkg_delete(1)
>   when you should have used deinstall.
> 
> So I'm wondering what is the difference between pkg_delete and using "make
> deinstall" from within the ports directory? What does "make deinstall" do
> that pkg_delete does not do? What does pkg_delete do that "make deinstall"
> does not do?

Hi,

This will point you in the right direction:

http://www.bsdforums.org/forums/archive/index.php/t-29467.html

man pkg_delete
man pkg_deinstall

Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


difference between deinstall and pkg_delete?

2006-06-01 Thread Jon Falconer
Greetings,

I see in the man page for ports the following:

 reinstallUse this to restore a port after using pkg_delete(1)
  when you should have used deinstall.

So I'm wondering what is the difference between pkg_delete and using "make
deinstall" from within the ports directory? What does "make deinstall" do
that pkg_delete does not do? What does pkg_delete do that "make deinstall"
does not do?

Thanks,

Jon

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete question

2005-12-28 Thread Michael C. Shultz
On Tuesday 27 December 2005 23:50, Yuan Jue wrote:
> On Wednesday 28 December 2005 14:21, Michael C. Shultz wrote:
> > On Tuesday 27 December 2005 22:10, Yuan Jue wrote:
> > > On Wednesday 28 December 2005 14:00, Dmitry Sidorov wrote:
> > > > On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote:
> > > > > hello, all
> > > > >
> > > > > I wanna delete a package that I don't want now. I know that when I
> > > > > use portinstall -R xxx to install it, many dependencies have been
> > > > > installed too. Now I wanna delete them all if they are not used by
> > > > > any other packages.
> > > > >
> > > > > how can I do it? can I "pkg_delete -r xxx"?
> > > > >
> > > > > thanks.
> > > >
> > > > yes you can,
> > > > ls -al /var/db/pkg
> > > > find your package name, and execute:
> > > > pkg_delete -r package_name
> > >
> > > thanks for your reply.
> > > but doesn't "pkg_delete -r xxx" use to delete all packages
> > > that depend on the xxx? what I wanna delete are those packages
> > > that xxx depend on. any ideas?
> >
> > To delete ports that none depend on try:
> >
> > sysutils/portmanager
> >
> > portmanager -slid
>
> thanks. it works very well :)

Your welcome :)

-Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete question

2005-12-27 Thread Yuan Jue
On Wednesday 28 December 2005 14:21, Michael C. Shultz wrote:
> On Tuesday 27 December 2005 22:10, Yuan Jue wrote:
> > On Wednesday 28 December 2005 14:00, Dmitry Sidorov wrote:
> > > On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote:
> > > > hello, all
> > > >
> > > > I wanna delete a package that I don't want now. I know that when I
> > > > use portinstall -R xxx to install it, many dependencies have been
> > > > installed too. Now I wanna delete them all if they are not used by
> > > > any other packages.
> > > >
> > > > how can I do it? can I "pkg_delete -r xxx"?
> > > >
> > > > thanks.
> > >
> > > yes you can,
> > > ls -al /var/db/pkg
> > > find your package name, and execute:
> > > pkg_delete -r package_name
> >
> > thanks for your reply.
> > but doesn't "pkg_delete -r xxx" use to delete all packages
> > that depend on the xxx? what I wanna delete are those packages
> > that xxx depend on. any ideas?
>
> To delete ports that none depend on try:
>
> sysutils/portmanager
>
> portmanager -slid

thanks. it works very well :)

-- 
Best Regards.
Yuan Jue
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete question

2005-12-27 Thread Michael C. Shultz
On Tuesday 27 December 2005 22:10, Yuan Jue wrote:
> On Wednesday 28 December 2005 14:00, Dmitry Sidorov wrote:
> > On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote:
> > > hello, all
> > >
> > > I wanna delete a package that I don't want now. I know that when I use
> > > portinstall -R xxx to install it, many dependencies have been installed
> > > too. Now I wanna delete them all if they are not used by any other
> > > packages.
> > >
> > > how can I do it? can I "pkg_delete -r xxx"?
> > >
> > > thanks.
> >
> > yes you can,
> > ls -al /var/db/pkg
> > find your package name, and execute:
> > pkg_delete -r package_name
>
> thanks for your reply.
> but doesn't "pkg_delete -r xxx" use to delete all packages
> that depend on the xxx? what I wanna delete are those packages
> that xxx depend on. any ideas?

To delete ports that none depend on try:

sysutils/portmanager

portmanager -slid

-Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete question

2005-12-27 Thread Yuan Jue
On Wednesday 28 December 2005 14:00, Dmitry Sidorov wrote:
> On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote:
> > hello, all
> >
> > I wanna delete a package that I don't want now. I know that when I use
> > portinstall -R xxx to install it, many dependencies have been installed
> > too. Now I wanna delete them all if they are not used by any other
> > packages.
> >
> > how can I do it? can I "pkg_delete -r xxx"?
> >
> > thanks.
>
> yes you can,
> ls -al /var/db/pkg
> find your package name, and execute:
> pkg_delete -r package_name

thanks for your reply.
but doesn't "pkg_delete -r xxx" use to delete all packages
that depend on the xxx? what I wanna delete are those packages
that xxx depend on. any ideas?

-- 
Best Regards.
Yuan Jue
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete question

2005-12-27 Thread Dmitry Sidorov
On Wed, 2005-12-28 at 13:55 +0800, Yuan Jue wrote:
> hello, all
> 
> I wanna delete a package that I don't want now. I know that when I use 
> portinstall -R xxx to install it, many dependencies have been installed too.
> Now I wanna delete them all if they are not used by any other packages.
> 
> how can I do it? can I "pkg_delete -r xxx"?
> 
> thanks.
> 
yes you can,
ls -al /var/db/pkg
find your package name, and execute:
pkg_delete -r package_name

-- 
Dmitry Sidorov
PEM QA Engineer
SWsoft, Inc.
E-mail: [EMAIL PROTECTED]
ICQ UIN: 864582

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete question

2005-12-27 Thread Yuan Jue
hello, all

I wanna delete a package that I don't want now. I know that when I use 
portinstall -R xxx to install it, many dependencies have been installed too.
Now I wanna delete them all if they are not used by any other packages.

how can I do it? can I "pkg_delete -r xxx"?

thanks.

-- 
Best Regards.
Yuan Jue
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Use pkg_delete or make deinstall?

2004-10-16 Thread Dancho Penev
On Fri, Oct 15, 2004 at 11:31:19PM -0500, Dan Nelson wrote:
Date: Fri, 15 Oct 2004 23:31:19 -0500
From: Dan Nelson <[EMAIL PROTECTED]>
To: Ben Washington-Yule <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: Use pkg_delete or make deinstall?
In the last episode (Oct 16), Ben Washington-Yule said:
I've been wondering lately if there is any difference between the two 
methods of removing software from the system; pkg_delete software-name 
and cd /usr/ports/catagory/software-name && make deinstall. This 
question is not answered in the FAQ, I mainly ask out of curiousity.
"make deinstall" just runs pkg_delete, so they're identical.
It's important to know that "make deinstall" runs "pkg_delete -f ..."
--
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
--
Dancho Penev
Home page:   http://www.mnet.bg/~dpenev
GnuGP public key:http://www.mnet.bg/~dpenev/gnupg.asc
Key fingerprint: E88D 8B7B 3EF6 E9C8 C5D2  7554 2AA8 C347 71A1 4277


pgpNb29woGg1n.pgp
Description: PGP signature


Re: Use pkg_delete or make deinstall?

2004-10-15 Thread Dan Nelson
In the last episode (Oct 16), Ben Washington-Yule said:
> I've been wondering lately if there is any difference between the two 
> methods of removing software from the system; pkg_delete software-name 
> and cd /usr/ports/catagory/software-name && make deinstall. This 
> question is not answered in the FAQ, I mainly ask out of curiousity.

"make deinstall" just runs pkg_delete, so they're identical.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Use pkg_delete or make deinstall?

2004-10-15 Thread Ben Washington-Yule
I've been wondering lately if there is any difference between the two 
methods of removing software from the system; pkg_delete software-name 
and cd /usr/ports/catagory/software-name && make deinstall. This 
question is not answered in the FAQ, I mainly ask out of curiousity.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete multimedia/mplayer doesn't work

2004-06-25 Thread jobse
Thanx,
Epi,
Ch Hiris,
Erik Trulsson.
I appreciate your answers.
It seems to have come back to normal again and mplayer
is definitely gone! chers.
/jobse

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-25 Thread jobse
Hay
On Thu, 2004-06-24 at 22:20, [EMAIL PROTECTED] wrote:

> though cd to the mplayer ports dir followed by make deinstall 'should'
> have solved the problem, i just noticed another detail worth mentioning.
> 
> you're using pkg_delete here.  i do not believe that it accepts shell
> globs (like * or ?).  you might have better luck with pkg_deinstall -- part
> of the tools installed by /sysutils/portupgrade, which i *highly*
> recommend.

Thanx for the tip.
I just deleted all I could find with rm. I dont know if that   
was a good move however. "pkgdb -F" now tells me off.

I've just been solving one problem about how to set up my graphics and
sound modules but am gradually realising there is more to come.

jobse




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread Christian Hiris
On Thursday 24 June 2004 19:50, jobse wrote:
> hello
> I do like this from /usr/ports.
> pkg_delete multimedia/mplayer*, right.
> And then I get that nothing is installed.

Try
# cd /var/db/pkg
# pkg_delete mplayer* 

If you want to force deletion of the package use the command 
# pkg_delete -f mplayer*
instead of 
# pkg_delete mplayer* 

If it's still not deinstalling enter the command
# ls -l /var/db/pkg/mplayer*
If it doesnt return somthing like
'/var/db/pkg/mplayer-gtk-esound'
no mplayer package has been registered on your system.  

hth
ch

-- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x941B6B0B 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


pgpQfMP4Ij4KH.pgp
Description: signature


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread epilogue
On Thu, 24 Jun 2004 16:20:06 -0400
[EMAIL PROTECTED] wrote:

> On Thu, 24 Jun 2004 22:10:25 +0200
> jobse <[EMAIL PROTECTED]> wrote:
> 
> > On Thu, 2004-06-24 at 21:15, [EMAIL PROTECTED] wrote:
> > > On Thu, 24 Jun 2004 19:50:50 +0200
> > > jobse <[EMAIL PROTECTED]> wrote:
> > > 
> > > > hello
> > > > I do like this from /usr/ports.
> > > > pkg_delete multimedia/mplayer*, right.
 
also, it's not 'pkg_delete multimedia/mplayer*'

it would be 'pkg_delete mplayer-gtk-0.92.1_1'  (substituted by whatever
'pkg_info | grep -i mplay' returns as the mplayer version installed)

you might want to consider rereading the handbook section on working
with ports as well as the pkg_delete man page, while i should definitely
concentrate on more closely reading e-mails.   ;)

good luck.  epi out.


> though cd to the mplayer ports dir followed by make deinstall 'should'
> have solved the problem, i just noticed another detail worth mentioning.
> 
> you're using pkg_delete here.  i do not believe that it accepts shell
> globs (like * or ?).  you might have better luck with pkg_deinstall --
> part of the tools installed by /sysutils/portupgrade, which i *highly*
> recommend.
> 
> > > > When I go into the directory of ports/mplayer and
> > > > try deinstall it. It says deinstalling for mplayer, but
> > > > afterwars I can still run it.
> > > 
> > > if everything was originally installed via ports or packages and
> > > nothing moved, this is highly unusual.  
> > yeah, isn't it weird?
> > > 
> > > try a few of these commands to gather some info:
> > > 
> > > which mplayer
> > > mplayer -v
> > > locate mplayer
> > > find / -name mplayer -print
> > > find / -path \*mplayer\* -print | more
> > 
> > I will try them out and do some digging.
> > 
> > > hope this helps.
> > 
> > thanx
> > /jobse
> > > 
> > > 
> > 
> > > cheers,
> > > epi
> > > 
> > >  
> > > > ___
> > > > [EMAIL PROTECTED] mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to
> > > > "[EMAIL PROTECTED]"
> > > > 
> > > 
> > 
> > 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread Erik Trulsson
On Thu, Jun 24, 2004 at 04:20:06PM -0400, [EMAIL PROTECTED] wrote:
> On Thu, 24 Jun 2004 22:10:25 +0200
> jobse <[EMAIL PROTECTED]> wrote:
> 
> > On Thu, 2004-06-24 at 21:15, [EMAIL PROTECTED] wrote:
> > > On Thu, 24 Jun 2004 19:50:50 +0200
> > > jobse <[EMAIL PROTECTED]> wrote:
> > > 
> > > > hello
> > > > I do like this from /usr/ports.
> > > > pkg_delete multimedia/mplayer*, right.
> 
> though cd to the mplayer ports dir followed by make deinstall 'should'
> have solved the problem, i just noticed another detail worth mentioning.
> 
> you're using pkg_delete here.  i do not believe that it accepts shell
> globs (like * or ?).  you might have better luck with pkg_deinstall -- part
> of the tools installed by /sysutils/portupgrade, which i *highly*
> recommend.

pkg_delete does accept shell globs, but you have to quote them to make
sure that the shell does not expand them.
(I.e. one should do something like 
pkg_delete 'mplayer*'
to delete all all packages whose name start with mplayer.)


-- 

Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread epilogue
On Thu, 24 Jun 2004 22:10:25 +0200
jobse <[EMAIL PROTECTED]> wrote:

> On Thu, 2004-06-24 at 21:15, [EMAIL PROTECTED] wrote:
> > On Thu, 24 Jun 2004 19:50:50 +0200
> > jobse <[EMAIL PROTECTED]> wrote:
> > 
> > > hello
> > > I do like this from /usr/ports.
> > > pkg_delete multimedia/mplayer*, right.

though cd to the mplayer ports dir followed by make deinstall 'should'
have solved the problem, i just noticed another detail worth mentioning.

you're using pkg_delete here.  i do not believe that it accepts shell
globs (like * or ?).  you might have better luck with pkg_deinstall -- part
of the tools installed by /sysutils/portupgrade, which i *highly*
recommend.

> > > When I go into the directory of ports/mplayer and
> > > try deinstall it. It says deinstalling for mplayer, but
> > > afterwars I can still run it.
> > 
> > if everything was originally installed via ports or packages and
> > nothing moved, this is highly unusual.  
> yeah, isn't it weird?
> > 
> > try a few of these commands to gather some info:
> > 
> > which mplayer
> > mplayer -v
> > locate mplayer
> > find / -name mplayer -print
> > find / -path \*mplayer\* -print | more
> 
> I will try them out and do some digging.
> 
> > hope this helps.
> 
> thanx
> /jobse
> > 
> > 
> 
> > cheers,
> > epi
> > 
> >  
> > > ___
> > > [EMAIL PROTECTED] mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> > > 
> > 
> 
> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread jobse
On Thu, 2004-06-24 at 21:15, [EMAIL PROTECTED] wrote:
> On Thu, 24 Jun 2004 19:50:50 +0200
> jobse <[EMAIL PROTECTED]> wrote:
> 
> > hello
> > I do like this from /usr/ports.
> > pkg_delete multimedia/mplayer*, right.
> > 
> > When I go into the directory of ports/mplayer and
> > try deinstall it. It says deinstalling for mplayer, but
> > afterwars I can still run it.
> 
> if everything was originally installed via ports or packages and nothing
> moved, this is highly unusual.  
yeah, isn't it weird?
> 
> try a few of these commands to gather some info:
> 
> which mplayer
> mplayer -v
> locate mplayer
> find / -name mplayer -print
> find / -path \*mplayer\* -print | more

I will try them out and do some digging.

> hope this helps.

thanx
/jobse
> 
> 

> cheers,
> epi
> 
>  
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
> > 
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread epilogue
On Thu, 24 Jun 2004 19:50:50 +0200
jobse <[EMAIL PROTECTED]> wrote:

> hello
> I do like this from /usr/ports.
> pkg_delete multimedia/mplayer*, right.
> And then I get that nothing is installed.
> 
> I test mplayer finds it still working. Should it
> not have been deleted?
> When I go into the directory of ports/mplayer and
> try deinstall it. It says deinstalling for mplayer, but
> afterwars I can still run it.

if everything was originally installed via ports or packages and nothing
moved, this is highly unusual.  i suspect however, that one of the two did
happen, that you've got an extra copy floating around somewhere on your
machine, and that you will have to do a little homework to get to the
bottom of this.

try a few of these commands to gather some info:

which mplayer
mplayer -v
locate mplayer
find / -name mplayer -print
find / -path \*mplayer\* -print | more

now that you know what it is (version) and where it is, you can try to
figure out more about what happened.  how/when that version was installed
(check dates and compare version number to port history), if it was moved
to somewhere non-standard (compare with normal install directories), and
what ever else tickles your fancy.

finally, you now have to option to eliminate the port by simply removing it
manually.

hope this helps.


cheers,
epi

> 
> thanks
> /jobse
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete multimedia/mplayer doesn't work

2004-06-24 Thread jobse
hello
I do like this from /usr/ports.
pkg_delete multimedia/mplayer*, right.
And then I get that nothing is installed.

I test mplayer finds it still working. Should it
not have been deleted?
When I go into the directory of ports/mplayer and
try deinstall it. It says deinstalling for mplayer, but
afterwars I can still run it.

thanks
/jobse

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_deinstall or pkg_delete

2004-05-11 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Roop
Nanuwa thusly...
>
> On Mon, 10 May 2004 22:45:42 -0400, Chiang Seng Chang
> <[EMAIL PROTECTED]> wrote:
> > 
> > What's the difference between pkg_deinstall and pkg_delete ?
> 
> pkg_deinstall is a wrapper for pkg_delete that supports wildcards
> and dependency recursion.

Pkg_delete handles wildcards just fine.  Or, is it just the partial
port string, case sensitive, that it can handle?  I do not have any
ports to deinstall handy right now to test.


> > If I use portinstall to install a port, which should I use to
> > uninstall it ?
> 
> If it's a single port that you want to delete on its own then
> either will suffice.  If you want to do a recursive uninstall or
> delete multiple packages then you'll probably want to make use of
> pkg_deinstall.

Pkg_delete can delete ports given as a list just like it can delete
single port; it, however, does not recurse like pkg_deinstall.


I have not used pkg_deinstall to recursively ports much; I like
pkg_delete better, more so in case of inconsistent state of
installed dependencies.


  - Parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_deinstall or pkg_delete

2004-05-10 Thread Roop Nanuwa
On Mon, 10 May 2004 22:45:42 -0400, Chiang Seng Chang <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> What's the difference between pkg_deinstall and pkg_delete ?
> 

pkg_deinstall is a wrapper for pkg_delete that supports wildcards and
dependency recursion.

> If I use portinstall to install a port, which should I use to uninstall it ?
> 

If it's a single port that you want to delete on its own then either
will suffice.
If you want to do a recursive uninstall or delete multiple packages then you'll
probably want to make use of pkg_deinstall.

--roop
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_deinstall or pkg_delete

2004-05-10 Thread Chiang Seng Chang
Hi,

What's the difference between pkg_deinstall and pkg_delete ?

If I use portinstall to install a port, which should I use to uninstall it ?

Thanx.

-cs
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'

2004-03-06 Thread Kent Stewart
On Saturday 06 March 2004 03:16 pm, Shaun T. Erickson wrote:
> 'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'
>
> What's the difference between these?
>

You can do a wild card delete using something like 
pkg_delete 'port*'
and not have to use the full version number. You can do this in fewer 
steps than learning the path to the port and cd'ing in. Once you have 
used either method, I don't think you can tell how you did it :).

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'

2004-03-06 Thread parv
in message <[EMAIL PROTECTED]>,
wrote Shaun T. Erickson thusly...
>
> 'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'

There is no such thing as /usr/ports/, unless you meant
/usr/ports// which i assume for this reply.


> What's the difference between these?

One is "make deinstall" will remove the port w/o care to any
dependencies.   Pkg_delete will remove a dependency-port only if you
specify via the -f (force) flag.  Both will notify you about any
dependencies in any case.

Personally, i use "make deinstall" only when the installed port
version is same as in /usr/ports// AND happened to be
in that directory.  Otherwise, i just use pkg_de(install|delete).


  - Parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'

2004-03-06 Thread Shaun T. Erickson
'pkg_delete port' vs 'cd /usr/ports/port;make deinstall'

What's the difference between these?

	-ste

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: what is diff between pkg_delete & make deinstall

2003-12-23 Thread Matthew Seaman
On Tue, Dec 23, 2003 at 02:04:06PM -0500, fbsd_user wrote:
> I see that pkg_delete will delete an port as well as an package. 

Ports and pkgs are different sides of the same coin.

> Does pkg_delete do the same thing as the make deinstall command?

Almost exactly the same.  The difference is that pkg_delete(1) will
delete packages by matching the name and version number stored in
/var/db/pkg, whereas make deinstall deletes the all packages installed
from a particular ports directory where the same $PREFIX setting was
used to install as is currently in force.  Unless you're in the habit
of installing multiple copies of ports/pkgs using different $PREFIX
settings, that generally comes out to be the same thing.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


what is diff between pkg_delete & make deinstall

2003-12-23 Thread fbsd_user
I see that pkg_delete will delete an port as well as an package. 
Does pkg_delete do the same thing as the make deinstall command?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete

2003-11-20 Thread Olga Zenkova
Hi, all. FreeBSD 4.2. Can't delete rrdtool-1.0.45
after installation. Get: "pkg_delete: rrdtool-1.0.45
doesn't have a prefix". What should I do? That is a
question.

Thanks,
Olga

 

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete PERL ?

2003-09-13 Thread Lowell Gilbert
"Richard Shea" <[EMAIL PROTECTED]> writes:

> Hi - I've got disk space problems I'm trying to resolve by having a clear
> up. I've got a lot of stuff which appears to be Perl modules (see
> listings bottom) but I don't know how to uninstall Perl modules - can
> anyone tell me ?
> 
> On the same subject is it possible to uninstall Perl ? When I do pkg_info
> it's not in there - is it build deeper into BSD than that ? 

Before 5.x, perl was part of the base system.  You didn't mention what
version you're running, so I'll just guess it's 4.x.  If it's a recent
4.x, you *might* be able to get rid of perl and be okay, but it's
certainly not supported.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pkg_delete PERL ?

2003-09-13 Thread Richard Shea
Hi - I've got disk space problems I'm trying to resolve by having a clear
up. I've got a lot of stuff which appears to be Perl modules (see
listings bottom) but I don't know how to uninstall Perl modules - can
anyone tell me ?

On the same subject is it possible to uninstall Perl ? When I do pkg_info
it's not in there - is it build deeper into BSD than that ? 

thanks for any help and here goes with that listing 

richard shea



===[root] / # locate CPAN
/root/.cpan/CPAN
/root/.cpan/CPAN/MyConfig.pm
/root/.cpan/CPAN/MyConfig.pm.000
/usr/libdata/perl/5.00503/CPAN
/usr/libdata/perl/5.00503/CPAN/Config.pm
/usr/libdata/perl/5.00503/CPAN/Config.pm~
/usr/libdata/perl/5.00503/CPAN/FirstTime.pm
/usr/libdata/perl/5.00503/CPAN/Nox.pm
/usr/libdata/perl/5.00503/CPAN.pm
/usr/share/perl/man/cat3/CPAN.3.gz
/usr/share/perl/man/man3/CPAN.3.gz
/usr/share/perl/man/man3/CPAN::FirstTime.3.gz
/usr/share/perl/man/man3/CPAN::Nox.3.gz
/usr/src/contrib/perl5/lib/CPAN
/usr/src/contrib/perl5/lib/CPAN/FirstTime.pm
/usr/src/contrib/perl5/lib/CPAN/Nox.pm
/usr/src/contrib/perl5/lib/CPAN.pm

The Cuba Group
PO Box 1864
Wellington
New Zealand

PH +64 4 496 5205
MO +64 21 296 6839 
FX +64 4 496 5209

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"