public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] What is a dependency of ruby
@ 2023-09-21 11:45 Alan McKinnon
  2023-09-21 12:01 ` Arve Barsnes
  2023-09-21 15:03 ` Neil Bothwick
  0 siblings, 2 replies; 11+ messages in thread
From: Alan McKinnon @ 2023-09-21 11:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

Hey Gentooers,

Not 100% back in the gentoo groove yet, forget some basic tools.

Something pulled in ruby, I know not what.

What commands show me what installed packages have ruby as a dependency?

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

[-- Attachment #2: Type: text/html, Size: 503 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 11:45 [gentoo-user] What is a dependency of ruby Alan McKinnon
@ 2023-09-21 12:01 ` Arve Barsnes
  2023-09-21 12:34   ` Alan McKinnon
  2023-09-21 15:03 ` Neil Bothwick
  1 sibling, 1 reply; 11+ messages in thread
From: Arve Barsnes @ 2023-09-21 12:01 UTC (permalink / raw
  To: gentoo-user

On Thu, 21 Sept 2023 at 13:45, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>
> Hey Gentooers,
>
> Not 100% back in the gentoo groove yet, forget some basic tools.
>
> Something pulled in ruby, I know not what.
>
> What commands show me what installed packages have ruby as a dependency?

I tend to use
# equery d dev-lang/ruby

equery from app-portage/gentoolkit

Regards,
Arve


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 12:01 ` Arve Barsnes
@ 2023-09-21 12:34   ` Alan McKinnon
  2023-09-21 15:10     ` Michael
  0 siblings, 1 reply; 11+ messages in thread
From: Alan McKinnon @ 2023-09-21 12:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

On Thu, Sep 21, 2023 at 2:01 PM Arve Barsnes <arve.barsnes@gmail.com> wrote:

> On Thu, 21 Sept 2023 at 13:45, Alan McKinnon <alan.mckinnon@gmail.com>
> wrote:
> >
> > Hey Gentooers,
> >
> > Not 100% back in the gentoo groove yet, forget some basic tools.
> >
> > Something pulled in ruby, I know not what.
> >
> > What commands show me what installed packages have ruby as a dependency?
>
> I tend to use
> # equery d dev-lang/ruby
>
> equery from app-portage/gentoolkit
>
> Regards,
> Arve
>
>
Yes, that's the one! thanks!


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

[-- Attachment #2: Type: text/html, Size: 1210 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 11:45 [gentoo-user] What is a dependency of ruby Alan McKinnon
  2023-09-21 12:01 ` Arve Barsnes
@ 2023-09-21 15:03 ` Neil Bothwick
  2023-09-21 15:21   ` Matt Connell
  2023-09-21 16:30   ` Alan McKinnon
  1 sibling, 2 replies; 11+ messages in thread
From: Neil Bothwick @ 2023-09-21 15:03 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:

> Not 100% back in the gentoo groove yet, forget some basic tools.
> 
> Something pulled in ruby, I know not what.
> 
> What commands show me what installed packages have ruby as a dependency?

emerge -cav ruby


-- 
Neil Bothwick

If at first you don't succeed, skydiving is not for you.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 12:34   ` Alan McKinnon
@ 2023-09-21 15:10     ` Michael
  0 siblings, 0 replies; 11+ messages in thread
From: Michael @ 2023-09-21 15:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1911 bytes --]

On Thursday, 21 September 2023 13:34:20 BST Alan McKinnon wrote:
> On Thu, Sep 21, 2023 at 2:01 PM Arve Barsnes <arve.barsnes@gmail.com> wrote:
> > On Thu, 21 Sept 2023 at 13:45, Alan McKinnon <alan.mckinnon@gmail.com>
> > 
> > wrote:
> > > Hey Gentooers,
> > > 
> > > Not 100% back in the gentoo groove yet, forget some basic tools.
> > > 
> > > Something pulled in ruby, I know not what.
> > > 
> > > What commands show me what installed packages have ruby as a dependency?
> > 
> > I tend to use
> > # equery d dev-lang/ruby
> > 
> > equery from app-portage/gentoolkit
> > 
> > Regards,
> > Arve
> 
> Yes, that's the one! thanks!

Let's not forget qdepends too:

$ qdepends
usage: qdepends [opts] <pkgname> : show dependency info

options: -[drpbIQitUF:SRvqChV]
  -d, --depend       * Show DEPEND info
  -r, --rdepend      * Show RDEPEND infols: /usr/bin/qdepends

  -p, --pdepend      * Show PDEPEND info
  -b, --bdepend      * Show BDEPEND info
  -I, --idepend      * Show IDEPEND info
  -Q, --query        * Query reverse deps
  -i, --installed    * Search installed packages using VDB
  -t, --tree         * Search available ebuilds in the tree
  -U, --use          * Apply profile USE-flags to conditional deps
  -F, --format <arg> * Print matched atom using given format string
  -S, --pretty       * Pretty format specified depend strings
  -R, --resolve      * Resolve found dependencies to package versions
      --root <arg>   * Set the ROOT env var
  -v, --verbose      * Report full package versions, emit more elaborate 
output
  -q, --quiet        * Tighter output; suppress warnings
  -C, --nocolor      * Don't output color
      --color        * Force color in output
  -h, --help         * Print this help and exit
  -V, --version      * Print version and exit

$ qfile /usr/bin/qdepends
app-portage/portage-utils: /usr/bin/qdepends


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 15:03 ` Neil Bothwick
@ 2023-09-21 15:21   ` Matt Connell
  2023-09-21 21:06     ` Neil Bothwick
  2023-09-21 16:30   ` Alan McKinnon
  1 sibling, 1 reply; 11+ messages in thread
From: Matt Connell @ 2023-09-21 15:21 UTC (permalink / raw
  To: gentoo-user

On Thu, 2023-09-21 at 16:03 +0100, Neil Bothwick wrote:
> > What commands show me what installed packages have ruby as a dependency?
> 
> emerge -cav ruby

emerge --depclean --pretend ruby

No need to ask when you don't actually mean to depclean it... nor could
you if something depended on it.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 15:03 ` Neil Bothwick
  2023-09-21 15:21   ` Matt Connell
@ 2023-09-21 16:30   ` Alan McKinnon
  2023-09-21 16:31     ` Jack
  1 sibling, 1 reply; 11+ messages in thread
From: Alan McKinnon @ 2023-09-21 16:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

On Thu, Sep 21, 2023 at 5:03 PM Neil Bothwick <neil@digimed.co.uk> wrote:

> On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:
>
> > Not 100% back in the gentoo groove yet, forget some basic tools.
> >
> > Something pulled in ruby, I know not what.
> >
> > What commands show me what installed packages have ruby as a dependency?
>
> emerge -cav ruby
>
>
>
> Thanks Neil,

but that is the wrong way wrong.


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

[-- Attachment #2: Type: text/html, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 16:30   ` Alan McKinnon
@ 2023-09-21 16:31     ` Jack
  2023-09-21 17:09       ` Alan McKinnon
  0 siblings, 1 reply; 11+ messages in thread
From: Jack @ 2023-09-21 16:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

On 9/21/23 12:30, Alan McKinnon wrote:
>
>
> On Thu, Sep 21, 2023 at 5:03 PM Neil Bothwick <neil@digimed.co.uk> wrote:
>
>     On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:
>
>     > Not 100% back in the gentoo groove yet, forget some basic tools.
>     >
>     > Something pulled in ruby, I know not what.
>     >
>     > What commands show me what installed packages have ruby as a
>     dependency?
>
>     emerge -cav ruby
>
>
>
> Thanks Neil,
>
> but that is the wrong way wrong.
Why do you think so?  Trying to remove ruby will tell you why portage 
refuses to do so, and that reason is any installed packages that depend 
on it.  This differs from using equery, which will tell you every 
package that depends on ruby, whether or not it is installed.  Using -d 
instead of -a saves you from typing "N" just in case it IS willing to 
unmerge it.

[-- Attachment #2: Type: text/html, Size: 2041 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 16:31     ` Jack
@ 2023-09-21 17:09       ` Alan McKinnon
  2023-09-22  0:13         ` Jack
  0 siblings, 1 reply; 11+ messages in thread
From: Alan McKinnon @ 2023-09-21 17:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]

On Thu, Sep 21, 2023 at 6:35 PM Jack <ostroffjh@users.sourceforge.net>
wrote:

> On 9/21/23 12:30, Alan McKinnon wrote:
>
>
>
> On Thu, Sep 21, 2023 at 5:03 PM Neil Bothwick <neil@digimed.co.uk> wrote:
>
>> On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:
>>
>> > Not 100% back in the gentoo groove yet, forget some basic tools.
>> >
>> > Something pulled in ruby, I know not what.
>> >
>> > What commands show me what installed packages have ruby as a dependency?
>>
>> emerge -cav ruby
>>
>>
>>
>> Thanks Neil,
>
> but that is the wrong way wrong.
>
> Why do you think so?  Trying to remove ruby will tell you why portage
> refuses to do so, and that reason is any installed packages that depend on
> it.  This differs from using equery, which will tell you every package that
> depends on ruby, whether or not it is installed.  Using -d instead of -a
> saves you from typing "N" just in case it IS willing to unmerge it.
>

Because I wanted to know, recursively, what packages depended on ruby, i.e.
I have ruby (which I despise) so why?

The answer is kdenlive which I can see in equery d, and cannot see in
emerge -c

This matters because emerge -avc only gives immediate dependencies, I
wanted to see the full dep tree

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

[-- Attachment #2: Type: text/html, Size: 2724 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 15:21   ` Matt Connell
@ 2023-09-21 21:06     ` Neil Bothwick
  0 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2023-09-21 21:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

On Thu, 21 Sep 2023 11:21:34 -0400, Matt Connell wrote:

> > emerge -cav ruby  
> 
> emerge --depclean --pretend ruby
> 
> No need to ask when you don't actually mean to depclean it... nor could
> you if something depended on it.

Muscle memory added the --ask, but you do need verbose for this to give
the information you need.

emerge -cpv ruby


-- 
Neil Bothwick

A real programmer never documents his code.
It was hard to make, it should be hard to read

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] What is a dependency of ruby
  2023-09-21 17:09       ` Alan McKinnon
@ 2023-09-22  0:13         ` Jack
  0 siblings, 0 replies; 11+ messages in thread
From: Jack @ 2023-09-22  0:13 UTC (permalink / raw
  To: gentoo-user

On 2023.09.21 13:09, Alan McKinnon wrote:
> On Thu, Sep 21, 2023 at 6:35 PM Jack <ostroffjh@users.sourceforge.net>
> wrote:
> 
> > On 9/21/23 12:30, Alan McKinnon wrote:
> >
> >
> >
> > On Thu, Sep 21, 2023 at 5:03 PM Neil Bothwick <neil@digimed.co.uk>  
> wrote:
> >
> >> On Thu, 21 Sep 2023 13:45:19 +0200, Alan McKinnon wrote:
> >>
> >> > Not 100% back in the gentoo groove yet, forget some basic tools.
> >> > Something pulled in ruby, I know not what.
> >> > What commands show me what installed packages have ruby as a  
> dependency?
> >>
> >> emerge -cav ruby
> >
> > but that is the wrong way wrong.
> >
>> Why do you think so?  Trying to remove ruby will tell you why  
>> portage refuses to do so, and that reason is any installed packages  
>> that depend on it.  This differs from using equery, which will tell  
>> you every package that depends on ruby, whether or not it is  
>> installed.  Using -d instead of -a saves you from typing "N" just in  
>> case it IS willing to unmerge it.
> >
> 
> Because I wanted to know, recursively, what packages depended on  
> ruby, i.e. I have ruby (which I despise) so why?
> 
> The answer is kdenlive which I can see in equery d, and cannot see in  
> emerge -c
What options did you give to equery?
I had thought that "equery d" listed only direct dependencies, and that  
it listed packages whether installed or not.  Actually reading the fine  
equery man page, under the section on "depends (d)" are the options
-a, --all packages - Include dependencies that are not installed. This  
can take a while.
-D, --indirect - Search for both direct and indirect dependencies
so I was wrong on both counts.  I can imagine using -D might give a  
large list, but probably not so bad, as long as you don;t us both -a  
and -D.  Is this where you found kdenlive?
> 
> This matters because emerge -avc only gives immediate dependencies, I  
> wanted to see the full dep tree
> 
> --
> Alan McKinnon
> alan dot mckinnon at gmail dot com
> 



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-09-22  0:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 11:45 [gentoo-user] What is a dependency of ruby Alan McKinnon
2023-09-21 12:01 ` Arve Barsnes
2023-09-21 12:34   ` Alan McKinnon
2023-09-21 15:10     ` Michael
2023-09-21 15:03 ` Neil Bothwick
2023-09-21 15:21   ` Matt Connell
2023-09-21 21:06     ` Neil Bothwick
2023-09-21 16:30   ` Alan McKinnon
2023-09-21 16:31     ` Jack
2023-09-21 17:09       ` Alan McKinnon
2023-09-22  0:13         ` Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox