Re: yum erase the best way to do reverse dependency checking?

2011-02-23 Thread Panu Matilainen
On 02/20/2011 08:04 PM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build. There
 doesn't seem to be a non-destructive equivalent to yum erase
 package to see if I need to explicitly include a package/program.

 Anyone have a solution they like?

I kinda fail to see how it relates to building packages, but this'll 
give you the what would break if I removed foo answer without actually 
ever doing anything:
$ rpm -e --test package

Eg.

[pmatilai@localhost ~]$ rpm -e --test python-magic
error: Failed dependencies:
python-magic is needed by (installed) rpmlint-1.0-2.fc14.noarch

- Panu -
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-23 Thread Andras Simon
On 2/23/11, Panu Matilainen pmati...@laiskiainen.org wrote:
 On 02/20/2011 08:04 PM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build. There
 doesn't seem to be a non-destructive equivalent to yum erase
 package to see if I need to explicitly include a package/program.

 Anyone have a solution they like?

 I kinda fail to see how it relates to building packages, but this'll
 give you the what would break if I removed foo answer without actually
 ever doing anything:
 $ rpm -e --test package

Not really, because this will only show packages that directly depend
on the first package, not those that depend on these dependent
packages etc.

Andras
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-23 Thread suvayu ali
On Wed, Feb 23, 2011 at 1:41 AM, Andras Simon sza...@gmail.com wrote:
 Not really, because this will only show packages that directly depend
 on the first package, not those that depend on these dependent
 packages etc.


In any case if your package is not using a package directly, then it
should not be a dependency. I don't quite follow why there needs to be
a recursive dependency checking if its not being used explicitly.

 Andras



-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Gordon Messmer
On 02/20/2011 10:04 AM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build.

Spec files don't normally require the entire chain to be listed.  What 
problem are you trying to solve that isn't solved by listing the 
immediate build or runtime requirements?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Richard Shaw
On Mon, Feb 21, 2011 at 3:24 AM, Gordon Messmer yiny...@eburg.com wrote:
 On 02/20/2011 10:04 AM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build.

 Spec files don't normally require the entire chain to be listed.  What
 problem are you trying to solve that isn't solved by listing the
 immediate build or runtime requirements?

I was just tying to not be redundant. For instance, the package relies
on mlt and mlt-python. I don't have to include mlt because mlt-python
already requires it.

yum erase just doesn't seem like a very elegant solution...

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Patrick O'Callaghan
On Mon, 2011-02-21 at 08:15 -0600, Richard Shaw wrote:
 On Sun, Feb 20, 2011 at 1:31 PM, Robert Nichols
 rnicholsnos...@comcast.net wrote:
  On 02/20/2011 12:04 PM, Richard Shaw wrote:
  I was googling for a way to figure out a dependency chain for a
  package I'm trying to flush out a spec file for and build. There
  doesn't seem to be a non-destructive equivalent to yum erase
  package to see if I need to explicitly include a package/program.
 
  Anyone have a solution they like?
 
  Unless you use -y on the command line or have assumeyes in your
  yum.conf file, yum is going to prompt for confirmation before actually
  removing anything.
 
 Obviously. I was just trying to find a method that's failsafe. One
 could argue that it's very easy to accidentally add -y or press y at
 the prompt because that's what you're used to doing.

echo N|yum erase foo

Not elegant but it works.

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Richard Shaw
On Mon, Feb 21, 2011 at 8:37 AM, Patrick O'Callaghan
pocallag...@gmail.com wrote:
 On Mon, 2011-02-21 at 08:15 -0600, Richard Shaw wrote:
 On Sun, Feb 20, 2011 at 1:31 PM, Robert Nichols
 rnicholsnos...@comcast.net wrote:
  On 02/20/2011 12:04 PM, Richard Shaw wrote:
  I was googling for a way to figure out a dependency chain for a
  package I'm trying to flush out a spec file for and build. There
  doesn't seem to be a non-destructive equivalent to yum erase
  package to see if I need to explicitly include a package/program.
 
  Anyone have a solution they like?
 
  Unless you use -y on the command line or have assumeyes in your
  yum.conf file, yum is going to prompt for confirmation before actually
  removing anything.

 Obviously. I was just trying to find a method that's failsafe. One
 could argue that it's very easy to accidentally add -y or press y at
 the prompt because that's what you're used to doing.

 echo N|yum erase foo

 Not elegant but it works.

Hmmm I could wrap that in my own shell script to make it more
memorable. Something like depcheck or the like.

Thanks,
Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Robert Nichols
On 02/21/2011 08:37 AM, Patrick O'Callaghan wrote:
 On Mon, 2011-02-21 at 08:15 -0600, Richard Shaw wrote:
 On Sun, Feb 20, 2011 at 1:31 PM, Robert Nichols
 rnicholsnos...@comcast.net  wrote:
 On 02/20/2011 12:04 PM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build. There
 doesn't seem to be a non-destructive equivalent to yum erase
 package to see if I need to explicitly include a package/program.

 Anyone have a solution they like?

 Unless you use -y on the command line or have assumeyes in your
 yum.conf file, yum is going to prompt for confirmation before actually
 removing anything.

 Obviously. I was just trying to find a method that's failsafe. One
 could argue that it's very easy to accidentally add -y or press y at
 the prompt because that's what you're used to doing.

 echo N|yum erase foo

 Not elegant but it works.

Even if someone has assumeyes in the yum.conf file?  Pardon me, but
I'm reluctant to test that.

-- 
Bob Nichols NOSPAM is really part of my email address.
 Do NOT delete it.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Robert Nichols
On 02/21/2011 08:14 AM, Richard Shaw wrote:
 On Mon, Feb 21, 2011 at 3:24 AM, Gordon Messmeryiny...@eburg.com  wrote:
 On 02/20/2011 10:04 AM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build.

 Spec files don't normally require the entire chain to be listed.  What
 problem are you trying to solve that isn't solved by listing the
 immediate build or runtime requirements?

 I was just tying to not be redundant. For instance, the package relies
 on mlt and mlt-python. I don't have to include mlt because mlt-python
 already requires it.

You should include in your dependencies all the things you directly
require and not worry about redundancy.  You should not assume that
you don't need to require Package-B because you also require
Package-A, and Package-A requires Package-B.  Those dependencies
can change.  Let's say that one day Package-B gets split into
Package-B and Package-B-libs, and Package-A now just requires
Package-B-libs.  If your actual need is for Package-B, you would
get a run-time failure if Package-B was not installed.

-- 
Bob Nichols NOSPAM is really part of my email address.
 Do NOT delete it.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Patrick O'Callaghan
On Mon, 2011-02-21 at 09:29 -0600, Robert Nichols wrote:
 On 02/21/2011 08:37 AM, Patrick O'Callaghan wrote:
  On Mon, 2011-02-21 at 08:15 -0600, Richard Shaw wrote:
  On Sun, Feb 20, 2011 at 1:31 PM, Robert Nichols
  rnicholsnos...@comcast.net  wrote:
  On 02/20/2011 12:04 PM, Richard Shaw wrote:
  I was googling for a way to figure out a dependency chain for a
  package I'm trying to flush out a spec file for and build. There
  doesn't seem to be a non-destructive equivalent to yum erase
  package to see if I need to explicitly include a package/program.
 
  Anyone have a solution they like?
 
  Unless you use -y on the command line or have assumeyes in your
  yum.conf file, yum is going to prompt for confirmation before actually
  removing anything.
 
  Obviously. I was just trying to find a method that's failsafe. One
  could argue that it's very easy to accidentally add -y or press y at
  the prompt because that's what you're used to doing.
 
  echo N|yum erase foo
 
  Not elegant but it works.
 
 Even if someone has assumeyes in the yum.conf file?  Pardon me, but
 I'm reluctant to test that.

No need to test it, as it clearly wouldn't work, but the OP was worried
about accidentally hitting 'y' so I'm assuming he doesn't have
'assumeyes' set.

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-21 Thread Richard Shaw
On Mon, Feb 21, 2011 at 9:48 AM, Robert Nichols
rnicholsnos...@comcast.net wrote:
 On 02/21/2011 08:14 AM, Richard Shaw wrote:
 On Mon, Feb 21, 2011 at 3:24 AM, Gordon Messmeryiny...@eburg.com  wrote:
 On 02/20/2011 10:04 AM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build.

 Spec files don't normally require the entire chain to be listed.  What
 problem are you trying to solve that isn't solved by listing the
 immediate build or runtime requirements?

 I was just tying to not be redundant. For instance, the package relies
 on mlt and mlt-python. I don't have to include mlt because mlt-python
 already requires it.

 You should include in your dependencies all the things you directly
 require and not worry about redundancy.  You should not assume that
 you don't need to require Package-B because you also require
 Package-A, and Package-A requires Package-B.  Those dependencies
 can change.  Let's say that one day Package-B gets split into
 Package-B and Package-B-libs, and Package-A now just requires
 Package-B-libs.  If your actual need is for Package-B, you would
 get a run-time failure if Package-B was not installed.

Maybe I mis-read the wiki then.While there is a lot of good
documentation, it's not quite enough to teach yourself without help.

Richard

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


yum erase the best way to do reverse dependency checking?

2011-02-20 Thread Richard Shaw
I was googling for a way to figure out a dependency chain for a
package I'm trying to flush out a spec file for and build. There
doesn't seem to be a non-destructive equivalent to yum erase
package to see if I need to explicitly include a package/program.

Anyone have a solution they like?

Thanks,
Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-20 Thread Robert Nichols
On 02/20/2011 12:04 PM, Richard Shaw wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build. There
 doesn't seem to be a non-destructive equivalent to yum erase
 package to see if I need to explicitly include a package/program.

 Anyone have a solution they like?

Unless you use -y on the command line or have assumeyes in your
yum.conf file, yum is going to prompt for confirmation before actually
removing anything.

-- 
Bob Nichols NOSPAM is really part of my email address.
 Do NOT delete it.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: yum erase the best way to do reverse dependency checking?

2011-02-20 Thread Bruno Wolff III
On Sun, Feb 20, 2011 at 12:04:51 -0600,
  Richard Shaw hobbes1...@gmail.com wrote:
 I was googling for a way to figure out a dependency chain for a
 package I'm trying to flush out a spec file for and build. There
 doesn't seem to be a non-destructive equivalent to yum erase
 package to see if I need to explicitly include a package/program.
 
 Anyone have a solution they like?

You should be able to use repoquery to do what you want.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines