Re: How to list all the installed packages...

2009-03-28 Thread Mel Flynn
On Friday 27 March 2009 10:12:57 Jan Henrik Sylvester wrote:

> Is there anything about build dependencies in cutleaves?
>
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/ports-mgmt/pkg_cutleaves/files/
>pkg_cutleaves?rev=1.2
>
> I do not see it at a quick glance.

No. Typically one knows the leaves that one has installed for a reason. Build 
dependencies are the rest. While not 100% perfect it covers the practical 
usage case.
-- 
Mel
___
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: How to list all the installed packages...

2009-03-28 Thread Ghirai
On Fri, 27 Mar 2009 09:05:04 +0700 (ICT)
Olivier Nicole  wrote:

> Hi,
> 
> Is there a way to show a list of all installed packages that are not
> required by any other package?
> 
> Some thing like "pkg_info -aR" where the Required by: field is empty.
> 
> Ultimately, that would give a list of "software" versus "libraries".
> 
> The question arise because, while installing a new machine, I found
> out that I have help2man installed, that is not required by any other
> package, that I did not install myself, that looks unneeded to me
> (until I may need it one day). So I would remove it; and would like to
> make a list of what is removable (that I did not install, and that is
> not required).
> 
> TIA,
> 
> Olivier

I use pkg_rmleaves.

-- 
Regards,
Ghirai.
___
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: How to list all the installed packages...

2009-03-27 Thread Jan Henrik Sylvester

Alain G. Fabry wrote:

On Fri, Mar 27, 2009 at 09:34:00AM +0100, Jan Henrik Sylvester wrote:

Olivier Nicole wrote:

Is there a way to show a list of all installed packages that are not
required by any other package?
cd /var/db/pkg/ ; for i in *-* ; do if [ ! -e $i/+REQUIRED_BY ] ; then 
echo $i ; fi ; done


[...]

If you want to be able to update ports quickly, you should keep the 
build dependencies. Doing "make pretty-print-build-depends-list" in a 
ports directory gives you the build dependencies.


[...]


How about pkg_cutleaves


Is there anything about build dependencies in cutleaves?

http://www.freebsd.org/cgi/cvsweb.cgi/ports/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves?rev=1.2

I do not see it at a quick glance.

Cheers,
Jan Henrik
___
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: How to list all the installed packages...

2009-03-27 Thread Alain G. Fabry
On Fri, Mar 27, 2009 at 09:34:00AM +0100, Jan Henrik Sylvester wrote:
> Olivier Nicole wrote:
> > Is there a way to show a list of all installed packages that are not
> > required by any other package?
> 
> cd /var/db/pkg/ ; for i in *-* ; do if [ ! -e $i/+REQUIRED_BY ] ; then 
> echo $i ; fi ; done
> 
> > Ultimately, that would give a list of "software" versus "libraries".
> 
> Not really. Only runtime dependencies are in +REQUIRED_BY, not build 
> time dependencies.
> 
> > The question arise because, while installing a new machine, I found
> > out that I have help2man installed, that is not required by any other
> > package, that I did not install myself, that looks unneeded to me
> > (until I may need it one day). So I would remove it; and would like to
> > make a list of what is removable (that I did not install, and that is
> > not required).
> 
> help2man is a build dependency of flex, which is a build dependency of 
> gstreamer. gstreamer is a runtime dependency of many application 
> (wxwidget stuff; from kde world: amarok2, ktorrent; from gnome: gimp, 
> pidgin, ...) If you update or rebuild gstreamer, help2man and flex will 
> be reinstalled and the update takes longer than necessary.
> 
> If you want to be able to update ports quickly, you should keep the 
> build dependencies. Doing "make pretty-print-build-depends-list" in a 
> ports directory gives you the build dependencies.
> 
> Cheers,
> Jan Henrik
> ___

How about pkg_cutleaves

-> cat /usr/ports/ports-mgmt/pkg_cutleaves/pkg-descr
pkg_cutleaves finds installed 'leaf' packages, i.e. packages that are
not referenced by any other installed package, and lets you decide for
each one if you want to keep or deinstall it (via pkg_deinstall(1)).

> 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-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: How to list all the installed packages...

2009-03-27 Thread Jan Henrik Sylvester

Olivier Nicole wrote:
> Is there a way to show a list of all installed packages that are not
> required by any other package?

cd /var/db/pkg/ ; for i in *-* ; do if [ ! -e $i/+REQUIRED_BY ] ; then 
echo $i ; fi ; done


> Ultimately, that would give a list of "software" versus "libraries".

Not really. Only runtime dependencies are in +REQUIRED_BY, not build 
time dependencies.


> The question arise because, while installing a new machine, I found
> out that I have help2man installed, that is not required by any other
> package, that I did not install myself, that looks unneeded to me
> (until I may need it one day). So I would remove it; and would like to
> make a list of what is removable (that I did not install, and that is
> not required).

help2man is a build dependency of flex, which is a build dependency of 
gstreamer. gstreamer is a runtime dependency of many application 
(wxwidget stuff; from kde world: amarok2, ktorrent; from gnome: gimp, 
pidgin, ...) If you update or rebuild gstreamer, help2man and flex will 
be reinstalled and the update takes longer than necessary.


If you want to be able to update ports quickly, you should keep the 
build dependencies. Doing "make pretty-print-build-depends-list" in a 
ports directory gives you the build dependencies.


Cheers,
Jan Henrik
___
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: How to list all the installed packages...

2009-03-26 Thread Glen Barber
On Thu, Mar 26, 2009 at 10:05 PM, Olivier Nicole  wrote:
> Hi,
>
> Is there a way to show a list of all installed packages that are not
> required by any other package?
>
> Some thing like "pkg_info -aR" where the Required by: field is empty.
>
> Ultimately, that would give a list of "software" versus "libraries".
>
> The question arise because, while installing a new machine, I found
> out that I have help2man installed, that is not required by any other
> package, that I did not install myself, that looks unneeded to me
> (until I may need it one day). So I would remove it; and would like to
> make a list of what is removable (that I did not install, and that is
> not required).
>

Have a look at the ports-mgmt/pkg_cutleaves port.

-- 
Glen Barber
___
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"


How to list all the installed packages...

2009-03-26 Thread Olivier Nicole
Hi,

Is there a way to show a list of all installed packages that are not
required by any other package?

Some thing like "pkg_info -aR" where the Required by: field is empty.

Ultimately, that would give a list of "software" versus "libraries".

The question arise because, while installing a new machine, I found
out that I have help2man installed, that is not required by any other
package, that I did not install myself, that looks unneeded to me
(until I may need it one day). So I would remove it; and would like to
make a list of what is removable (that I did not install, and that is
not required).

TIA,

Olivier
___
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"