yum: the package manager I love to hate

2009-09-08 Thread Jake Peavy
I'd like to buy a vowel.

Can someone tell me what package xxd is in?

Here's the progression:

1) yum install xxd 
2) yum whatprovides xxd 
3) yum whatprovides od  (worth a shot?)
4) google: yum install xxd  
5) google: yum xxd  
6) google: fedora xxd  
7) search gmail fedora list archives: xxd 
8) pull hair out
9) compose message to mailing list...

TIA..

-- 
-jp

If a kid ever asks you how Santa Claus can live forever, I think a good
answer is that he drinks blood.

deepthoughtsbyjackhandey.com
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread Bruno Wolff III
On Tue, Sep 08, 2009 at 11:56:54 -0400,
  Jake Peavy  wrote:
> I'd like to buy a vowel.
> 
> Can someone tell me what package xxd is in?

If it is installed, you can do:
yum whatprovides `which xxd`
Loaded plugins: allowdowngrade, dellsysidplugin, dellsysidplugin2, keys, list-
  : data, merge-conf, priorities, protect-packages, protectbase,
  : refresh-packagekit, upgrade-helper, verify, versionlock
livna| 2.4 kB 00:00 
local| 1.2 kB 00:00 
local   4/4
rpmfusion-free-updates   | 3.8 kB 00:00 
rpmfusion-free-updates-testing   | 3.8 kB 00:00 
rpmfusion-nonfree-updates| 3.8 kB 00:00 
rpmfusion-nonfree-updates/primary_db |  80 kB 00:00 
rpmfusion-nonfree-updates-testing| 3.8 kB 00:00 
updates  | 4.4 kB 00:00 
updates-testing  | 4.4 kB 00:00 
0 packages excluded due to repository protections
Reading version lock configuration
2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any version of
   : the VIM editor
Repo: fedora
Matched from:
Filename: /usr/bin/xxd



2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any version of
   : the VIM editor
Repo: installed
Matched from:
Other   : Provides-match: /usr/bin/xxd

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Mauriat Miranda
On Tue, Sep 8, 2009 at 12:13 PM, Bryn M. Reeves wrote:
> On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
>> I'd like to buy a vowel.
>
> Yum is not a package manager.

Although I know what you mean, a lot of information more or less deems it so.

# man yum

DESCRIPTION
   yum is an interactive, rpm based, package manager.

> I use this:
>
> qwhich () { if [ "$1" == "" ]; then echo "usage: qwhich " ; fi ;
> rpm -qf `which $1` ;}
>
> $ qwhich xxd
> vim-common-7.2.148-1.fc11.x86_64
>

Great tip!  Thanks.

-- 
Mauriat Miranda
http://www.mjmwired.net/linux

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Michael Semcheski
On Tue, Sep 8, 2009 at 11:56 AM, Jake Peavy  wrote:

> I'd like to buy a vowel.
>
> Can someone tell me what package xxd is in?
>
>
How about these options:

yum search xxd
yum whatprovides '*/xxd'
yum whatprovides '*/xxd*'
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread Jake Peavy
On Tue, Sep 8, 2009 at 12:40 PM, Bryn M. Reeves  wrote:

> On Tue, 2009-09-08 at 12:13 -0400, Jake Peavy wrote:
> > On Tue, Sep 8, 2009 at 12:13 PM, Bryn M. Reeves 
> > wrote:
> > On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
> > > I'd like to buy a vowel.
> >
> >
> > Yum is not a package manager.
> >
> > Huh?  "The Yellowdog Updater, Modified (YUM) is an open-source
> > command-line package-
> > management utility for RPM-compatible Linux operating systems"
>
> Yeah, I read that about a second after hitting send ;)
>
> What I'm getting at is that yum provides a tool for solving
> dependencies, downloading packages and managing repositories of software
> but it does this as a layer above the package manager (rpm). A few years
> ago it was common to hear statements like "apt is a much better package
> manager than RPM" which is kinda an apples-to-oranges comparison. Folks
> I knew at the time distinguished between the bits by calling the lower
> level (deb/rpm) the package manager and the other bits the "dependency
> solver" or whatever but obviously my use is outdated or niche - fixed
> that now ;)
>

haha ok, I guess I feel like it's MORE accurate to say yum is a package
manager because it manages the RPM packages, but I digress.  Semantics was
never my strong suit, thus engineering over law :p


>
> > > Can someone tell me what package xxd is in?
> >
> >
> > I use this:
> >
> > qwhich () { if [ "$1" == "" ]; then echo "usage: qwhich
> > " ; fi ;
> > rpm -qf `which $1` ;}
> >
> > $ qwhich xxd
> > vim-common-7.2.148-1.fc11.x86_64
> >
> >
> > Again, I don't see that this is a useful technique. If I had it
> > installed (such that it appeared in rpm -q or which) I wouldn't need
> > to install it.
>
> Nothing in your original mail suggested that you were trying to find out
> what package contains something that is not installed. The above is
> actually pretty useful and I use it regularly to find what package
> installed some binary in $PATH. That might not be useful to you in this
> instance but it does answer the question "Can someone tell me what
> package xxd is in?".
>
> If you want to answer that question for something not already installed
> and have a relatively recent yum then you can use a wildcard as the
> argument to whatprovides:
>
> $ sudo rpm -e vim-common vim-enhanced
> $ yum whatprovides */xxd
> Loaded plugins: refresh-packagekit
> updates/filelists_db
> | 7.0 MB 00:04
> 2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any
> version of the VIM editor
> Repo: fedora
> Matched from:
> Filename: /usr/bin/xxd
>
> If you're only interested in executables installed in a bin/ directory
> then use a pattern like "*bin/xxd".
>

Sorry, I wasn't clear enough originally.

And I guess I assumed that yum had the wildcarded behavior built in (seems
to me that it should anyway).

Regardless, thanks for the assistance.  I'll remember this next time I go
head to head with yum.

-- 
-jp


Instead of trying to build newer and bigger weapons of destruction, we
should be thinking about getting more use out of the ones we already have.

deepthoughtsbyjackhandey.com
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread suvayu ali
2009/9/8 Jake Peavy :
> On Tue, Sep 8, 2009 at 12:03 PM, Bruno Wolff III  wrote:
>>
>> On Tue, Sep 08, 2009 at 11:56:54 -0400,
>>  Jake Peavy  wrote:
>> > I'd like to buy a vowel.
>> >
>> > Can someone tell me what package xxd is in?
>>
>> If it is installed, you can do:
>> yum whatprovides `which xxd`
>
> This does not appear to be useful information.  If I had it installed I
> wouldn't need to install it??
>
> Or are you saying I need to put the complete path for xxd as the argument
> for whatprovides?  How am I supposed to know where the RPM I don't have
> would install it?  oh, yum.
>
>>
>> Reading version lock configuration
>> 2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any
>> version of
>>                                   : the VIM editor
>> Repo        : fedora
>> Matched from:
>> Filename    : /usr/bin/xxd
>>
>>
>>
>> 2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any
>> version of
>>                                   : the VIM editor
>> Repo        : installed
>> Matched from:
>> Other       : Provides-match: /usr/bin/xxd
>
> aha, vim-common  done.  thanks.
>
> --
> -jp
>
> It makes me mad when I go to all the trouble of having Marta cook up about a
> hundred drumsticks, then the guy at the Marineland says, "You can't throw
> chicken to the dolphins. They eat fish." Sure they eat fish, if that's all
> you give them. Man, wise up.
>

In that case use this,
yum whatprovides *bin/xxd

The `*bin/' will limit the search to executables.

-- 
Suvayu

Open source is the future. It sets us free.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Bryn M. Reeves
On Tue, 2009-09-08 at 12:50 -0400, Jake Peavy wrote:


> haha ok, I guess I feel like it's MORE accurate to say yum is a
> package manager because it manages the RPM packages, but I digress. 

You make a reasonable argument...

>  Semantics was never my strong suit, thus engineering over law :p

Well, I don't really work on packagey stuff so I am definitely not the
language lawyer for this. At one point "apt vs. RPM" was a favourite LUG
flamewar topic and I guess I am still a little over-sensitive! :)

> Sorry, I wasn't clear enough originally.

No problem, and "nothing" was probably a bit strong - you did have an
install command in there after all. Reading between the lines never was
my strong point.

> And I guess I assumed that yum had the wildcarded behavior built in (seems to 
> me that it should anyway).
> 
> Regardless, thanks for the assistance.  I'll remember this next time I go 
> head to head with yum.

Glad it helped!

Cheers,
Bryn.


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Bryn M. Reeves
On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
> I'd like to buy a vowel.

Yum is not a package manager.

> Can someone tell me what package xxd is in?

I use this:

qwhich () { if [ "$1" == "" ]; then echo "usage: qwhich " ; fi ;
rpm -qf `which $1` ;}

$ qwhich xxd
vim-common-7.2.148-1.fc11.x86_64

Regards,
Bryn.



-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Jake Peavy
On Tue, Sep 8, 2009 at 12:13 PM, Bryn M. Reeves  wrote:

> On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
> > I'd like to buy a vowel.
>
> Yum is not a package manager.
>

Huh?  "The Yellowdog Updater, Modified (*YUM*) is an open-source
command-line *package*-*management* utility for RPM-compatible Linux
operating systems"


>  > Can someone tell me what package xxd is in?
>
> I use this:
>
> qwhich () { if [ "$1" == "" ]; then echo "usage: qwhich " ; fi ;
> rpm -qf `which $1` ;}
>
> $ qwhich xxd
> vim-common-7.2.148-1.fc11.x86_64
>

Again, I don't see that this is a useful technique. If I had it installed
(such that it appeared in rpm -q or which) I wouldn't need to install it.

-- 
-jp


If you're a cowboy, and you're dragging a guy behind your horse, I bet it
would really make you mad if you looked back and the guy was reading a
magazine.

deepthoughtsbyjackhandey.com
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread Jake Peavy
On Tue, Sep 8, 2009 at 12:03 PM, Bruno Wolff III  wrote:

> On Tue, Sep 08, 2009 at 11:56:54 -0400,
>  Jake Peavy  wrote:
> > I'd like to buy a vowel.
> >
> > Can someone tell me what package xxd is in?
>
> If it is installed, you can do:
> yum whatprovides `which xxd`


This does not appear to be useful information.  If I had it installed I
wouldn't need to install it??

Or are you saying I need to put the complete path for xxd as the argument
for whatprovides?  How am I supposed to know where the RPM I don't have
would install it?  oh, yum.


> Reading version lock configuration
> 2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any version
> of
>   : the VIM editor
> Repo: fedora
> Matched from:
> Filename: /usr/bin/xxd
>
>
>
> 2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any version
> of
>   : the VIM editor
> Repo: installed
> Matched from:
> Other   : Provides-match: /usr/bin/xxd
>

aha, vim-common  done.  thanks.

-- 
-jp

It makes me mad when I go to all the trouble of having Marta cook up about a
hundred drumsticks, then the guy at the Marineland says, "You can't throw
chicken to the dolphins. They eat fish." Sure they eat fish, if that's all
you give them. Man, wise up.

deepthoughtsbyjackhandey.com
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread Bryn M. Reeves
On Tue, 2009-09-08 at 12:13 -0400, Jake Peavy wrote:
> On Tue, Sep 8, 2009 at 12:13 PM, Bryn M. Reeves 
> wrote:
> On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
> > I'd like to buy a vowel.
> 
> 
> Yum is not a package manager.
> 
> Huh?  "The Yellowdog Updater, Modified (YUM) is an open-source
> command-line package-
> management utility for RPM-compatible Linux operating systems"

Yeah, I read that about a second after hitting send ;)

What I'm getting at is that yum provides a tool for solving
dependencies, downloading packages and managing repositories of software
but it does this as a layer above the package manager (rpm). A few years
ago it was common to hear statements like "apt is a much better package
manager than RPM" which is kinda an apples-to-oranges comparison. Folks
I knew at the time distinguished between the bits by calling the lower
level (deb/rpm) the package manager and the other bits the "dependency
solver" or whatever but obviously my use is outdated or niche - fixed
that now ;)

> > Can someone tell me what package xxd is in?
> 
> 
> I use this:
> 
> qwhich () { if [ "$1" == "" ]; then echo "usage: qwhich
> " ; fi ;
> rpm -qf `which $1` ;}
> 
> $ qwhich xxd
> vim-common-7.2.148-1.fc11.x86_64
> 
> 
> Again, I don't see that this is a useful technique. If I had it
> installed (such that it appeared in rpm -q or which) I wouldn't need
> to install it.

Nothing in your original mail suggested that you were trying to find out
what package contains something that is not installed. The above is
actually pretty useful and I use it regularly to find what package
installed some binary in $PATH. That might not be useful to you in this
instance but it does answer the question "Can someone tell me what
package xxd is in?".

If you want to answer that question for something not already installed
and have a relatively recent yum then you can use a wildcard as the
argument to whatprovides:

$ sudo rpm -e vim-common vim-enhanced
$ yum whatprovides */xxd
Loaded plugins: refresh-packagekit
updates/filelists_db
| 7.0 MB 00:04 
2:vim-common-7.2.148-1.fc11.x86_64 : The common files needed by any
version of the VIM editor
Repo: fedora
Matched from:
Filename: /usr/bin/xxd

If you're only interested in executables installed in a bin/ directory
then use a pattern like "*bin/xxd".

Regards,
Bryn.

> 

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Bruno Wolff III
On Tue, Sep 08, 2009 at 12:08:35 -0400,
  Jake Peavy  wrote:
> 
> This does not appear to be useful information.  If I had it installed I
> wouldn't need to install it??

It wasn't clear from the phrasing in your original question why you needed
to find what package it was in.

yum whatprovides '/*xxd'

Should also work, but will be a bit less efficient. If you know the full
path it would be more efficient to supply it. But either way it should
finish reasonably quickly.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-08 Thread Michael Semcheski
On Tue, Sep 8, 2009 at 4:08 PM, Aaron Konstam wrote:

> try: yum whatprovides */xxd
>

One thing to note with this:  if you have a file that matches */xxd (for
example, if you have /home/mike/bin/xxd and the current directory is
/home/mike) yum (or maybe its bash) will expand the wildcard.

So, assuming you are in /home/mike, and /home/mike/bin/xxd exists, then:
yum whatprovides */xxd
is the same as:
yum whatprovides /home/mike/bin/xxd

Yum will come back and say "No matches found."

If you put quotes (single or double) around the '*/xxd', yum will really do
a wildcard search.
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: yum: the package manager I love to hate

2009-09-08 Thread Aaron Konstam
On Tue, 2009-09-08 at 11:56 -0400, Jake Peavy wrote:
> I'd like to buy a vowel.
> 
> Can someone tell me what package xxd is in?
> 
> Here's the progression:
> 
> 1) yum install xxd 
> 2) yum whatprovides xxd 
> 3) yum whatprovides od  (worth a shot?)
> 4) google: yum install xxd  
> 5) google: yum xxd  
> 6) google: fedora xxd  
> 7) search gmail fedora list archives: xxd 
> 8) pull hair out
> 9) compose message to mailing list...
> 
> TIA..
try: yum whatprovides */xxd

 --
===
Weiner's Law of Libraries: There are no answers, only cross references.
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net
> try: yum whatprovides */xxd
> -- 
> -jp
> 
> If a kid ever asks you how Santa Claus can live forever, I think a
> good answer is that he drinks blood. 
> 
> deepthoughtsbyjackhandey.com
> 
> -- 
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
--
===
Weiner's Law of Libraries: There are no answers, only cross references.
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: yum: the package manager I love to hate

2009-09-09 Thread Aaron Konstam
On Tue, 2009-09-08 at 16:13 -0400, Michael Semcheski wrote:
> On Tue, Sep 8, 2009 at 4:08 PM, Aaron Konstam 
> wrote:
> try: yum whatprovides */xxd
>  
> One thing to note with this:  if you have a file that matches */xxd
> (for example, if you have /home/mike/bin/xxd and the current directory
> is /home/mike) yum (or maybe its bash) will expand the wildcard.
> 
> 
> So, assuming you are in /home/mike, and /home/mike/bin/xxd exists,
> then:
> yum whatprovides */xxd
> is the same as:
> yum whatprovides /home/mike/bin/xxd
> 
> 
> Yum will come back and say "No matches found."  
> 
> 
> If you put quotes (single or double) around the '*/xxd', yum will
> really do a wildcard search.
> -- 
You are right .. I stand corrected.
--
===
"You are WRONG, you ol' brass-breasted fascist poop!" -- Bloom County
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines