Re: simple question...how to show packages which depend upon

2006-12-01 Thread Svein Halvor Halvorsen
Graham Bentley wrote:
>> Example: you install Z, which depends on Y, which depends in X,
>> ..., which depends on Q.
>> What if Q is "xorg-server-6.9.0_1"?
> 
> I installed 'feh' thinking wrongly it was a console app and ended up
> getting x, xlibs etc etc when all I wanted was a console app to view
> jpgs in elinks. So, the above is exactly what I wanted.

Ok, so you may want x-org-server deleted, by what about some other
dependency that your unwanted app shares with some port you really
do want to keep around?

I find pkg_cutleaves handy. It will loop through all the leaves of
your dependency tree (all ports that do not have any other ports
dependant on them), and asks if you want to keep or delete it. After
 the ports tree is cleaned up, it will ask you to repeat the process
for any ports that may have become leaves as a result of the
previous iteration.

When I look through the pkg_info list, I usually don't know what all
the installed ports do, I why I need it. But i usually do know if I
need a leaf or not.


Svein Halvor



signature.asc
Description: OpenPGP digital signature


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Graham Bentley
> Example: you install Z, which depends on Y, which depends in X,
> ..., which depends on Q.
> What if Q is "xorg-server-6.9.0_1"?

I installed 'feh' thinking wrongly it was a console app and ended up
getting x, xlibs etc etc when all I wanted was a console app to view
jpgs in elinks. So, the above is exactly what I wanted.

btw Does any one know a good console app to view jpgs ? seejpeg
just flashes the screen several time and dies.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Robert Huff

Graham Bentley writes:

>  And ... how to remove a package and all the packages
>  it sucked in ?

You don't want to do this blindly.
Example: you install Z, which depends on Y, which depends in X,
..., which depends on Q.
What if Q is "xorg-server-6.9.0_1"?


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


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Gerard Seibert
On Thursday November 30, 2006 at 07:25:32 (AM) Graham Bentley wrote:


> And ... how to remove a package and all the packages
> it sucked in ?
> 
> All I get from pkg_delete that it isnt even installed when 
> I know it is because that was the previous command I
> just ran !!!

Are you sure you are feedin it the correct information? Try this:

pkg_info -Ix PROGRAM_NAME (-> gives you the exact installed
version of PROGRAM_NAME installed.)

Now feed that to:

pkg_delete -vdfr PROGRAM_NAME

That should do it.

-- 
Gerard

 Mail from '@gmail' is rejected and/or discarded here. Don't waste
 your time!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Nagy László Zsolt

Graham Bentley írta:

And ... how to remove a package and all the packages
it sucked in ?

All I get from pkg_delete that it isnt even installed when 
I know it is because that was the previous command I

just ran !!!
  

Can you please send us the commands that you have executed?
If you used "pkg_add -r " then the name of the package can 
be a general package name, without version number. This is useful since 
usually you are not sure what is the latest version, you just want to 
install it. Here is an example:


messias# pkg_add -r mc
Fetching 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/mc.tbz... 
Done.

pkg_add: package 'mc-4.6.1_3' or its older version already installed

However, if you add a package that is saved locally, you need to type in 
its full name (or path):


pkg_add mc-4.6.1_3.tbz

or something similar. Once you have the package/port installed, you can 
lookup its full name with pkg_which:


messias# pkg_which mc
mc-4.6.1_4

When you need to delete a package, you need to specify the full name 
(including the version number). The reason for this is easy: it is 
possible to have different versions of the same package installed at the 
same time. (Well, this is not true for some packages, but it is true for 
others...)


So instead of doing:

pkg_delete mc

you should use:

pkg_delete mc-4.6.1_4

I hope this answers your question. If it does, then probably reading 
these man pages will help you a LOT:


portupgrade(1)
pkg_add(1)
pkg_deinstall(1)
pkg_delete(1)
pkg_glob(1)
pkg_info(1)
pkg_sort(1)
pkg_update(1)
pkgdb(1)
ports_glob(1)
portsclean(1)
portsdb(1)
portversion(1)
pkgtools.conf(5)
ports(7)


Best,

  Laszlo

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


Re: simple question...how to show packages which depend upon

2006-11-30 Thread Graham Bentley
And ... how to remove a package and all the packages
it sucked in ?

All I get from pkg_delete that it isnt even installed when 
I know it is because that was the previous command I
just ran !!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: simple question...how to show packages which depend upon a particular port

2006-11-29 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Dino Vliet thusly...
>
> I'm almost ashamed to ask this BUT I really don't know how to find
> the packages which depend upon a particular port.
>
> In this case, a portversion -l "<" showed mysql-client in that
> list. I can't recall having installed it by myself

Did you install mysql-server with default options?  Actually, in
mysql51-server port, there is no option to disable install of the
client portion.


> I wanted to know what the packages are which depend on it. Can
> somebody show me this command..and if it will be a RTFM
> answer, please tell me which FM:-)

Here are some of the ways not requiring connection to Internet I
know ...

  - running "make -V {LIB,RUN,BUILD}_DEPENDS" in a port directory
also lists the appropriate type of dependency list, so would
running "make pretty-print-{run,build}-depends-list";

  - pkg_info(1) w/ -[rR] options lists the dependencies for given
ports|packages;

  - ${PORTSDIR:-/usr/ports}/INDEX* lists dependencies for each port
(which may need post processing to be human readable);

  - sysutils/pkg_tree port creates text tree of the dependencies;


As for FM, see ...

  - pkg_info(1) & pkg_tree(7)  man pages;

  - ${PORTSDIR:-/usr/ports}/Mk/bsd.port.mk


  - Parv

-- 

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


Re: simple question...how to show packages which depend upon a particular port

2006-11-29 Thread Micah

Matthew Seaman wrote:

Dino Vliet wrote:


I'm almost ashamed to ask this BUT I really don't know
how to find the packages which depend upon a
particular port.


pkg_info -R port-name-\*

(-r does the inverse, packages on which port-name depends)

Cheers,

Matthew



Also, if you're into gui things, gpkgdep is pretty handy as it will show 
you the whole dependency tree rather than just the first level dependencies.


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


Re: simple question...how to show packages which depend upon a particular port

2006-11-29 Thread Matthew Seaman
Dino Vliet wrote:

> I'm almost ashamed to ask this BUT I really don't know
> how to find the packages which depend upon a
> particular port.

pkg_info -R port-name-\*

(-r does the inverse, packages on which port-name depends)

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


simple question...how to show packages which depend upon a particular port

2006-11-29 Thread Dino Vliet
Hi peeps,

I'm almost ashamed to ask this BUT I really don't know
how to find the packages which depend upon a
particular port.

In this case, a portversion -l "<" showed mysql-client
in that list. I can't recall having installed it by
myself I wanted to know what the packages are which
depend on it. Can somebody show me this
command..and if it will be a RTFM answer, please
tell me which FM:-)

Thanks


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"