List Info

Thread: anaconda dependency calculation?




anaconda dependency calculation?
country flaguser name
Germany
2007-03-16 12:25:50
Hi all,

I'm trying to find a tool that calculates all dependencies
for a 
specific package or group of packages for use with CentOS 5
(beta) with 
the intention of putting together a custom single CD build
of CentOS 5. 
With CentOS 4 i used a python script that used the hdrlist
module to 
find all dependencies which borrowed code from a number of
sources.

I've looked at yumdownloader and how it checks dependencies
(using the 
--resolve option) but if i pass it the list of packages
defined in say 
the Base and the Core yum groups which generally form an
absolute 
minimal install i end up with about 200 packages. If i do a
custom 
install (using beta 1 disks) and deselect everything i end
up with over 
300 packages.

So i'm guessing anaconda calculates dependencies in a
slightly different 
way, can anyone point me to files/code where i should be
looking to find 
out?

Thanks very much in advance for help
Nick




This e-mail is the property of Quadriga Worldwide Ltd,
intended for the addressee only and confidential.  Any
dissemination, copying or distribution of this message or
any attachments is strictly prohibited.

If you have received this message in error, please notify us
immediately by replying to the message and deleting it from
your computer.

Messages sent to and from Quadriga may be monitored.

Quadriga cannot guarantee any message delivery method is
secure or error-free.  Information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.

We do not accept responsibility for any errors or omissions
in this message and/or attachment that arise as a result of
transmission.

You should carry out your own virus checks before opening
any attachment.

Any views or opinions presented are solely those of the
author and do not necessarily represent those of
Quadriga._______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
United States
2007-03-16 12:28:59
Easiest solution is likely to just generate a hdlist (using 

genhdlist) and do what you did before.

There's a copy of genhdlist in rpm sources if you need.

73 de Jeff

On Mar 16, 2007, at 1:25 PM, Nicholas Byrne wrote:

> Hi all,
>
> I'm trying to find a tool that calculates all
dependencies for a  
> specific package or group of packages for use with
CentOS 5 (beta)  
> with the intention of putting together a custom single
CD build of  
> CentOS 5. With CentOS 4 i used a python script that
used the  
> hdrlist module to find all dependencies which borrowed
code from a  
> number of sources.
>
> I've looked at yumdownloader and how it checks
dependencies (using  
> the --resolve option) but if i pass it the list of
packages defined  
> in say the Base and the Core yum groups which generally
form an  
> absolute minimal install i end up with about 200
packages. If i do  
> a custom install (using beta 1 disks) and deselect
everything i end  
> up with over 300 packages.
>
> So i'm guessing anaconda calculates dependencies in a
slightly  
> different way, can anyone point me to files/code where
i should be  
> looking to find out?
>
> Thanks very much in advance for help
> Nick
>
>
>
>
> This e-mail is the property of Quadriga Worldwide Ltd,
intended for  
> the addressee only and confidential.  Any
dissemination, copying or  
> distribution of this message or any attachments is
strictly  
> prohibited.
>
> If you have received this message in error, please
notify us  
> immediately by replying to the message and deleting it
from your  
> computer.
>
> Messages sent to and from Quadriga may be monitored.
>
> Quadriga cannot guarantee any message delivery method
is secure or  
> error-free.  Information could be intercepted,
corrupted, lost,  
> destroyed, arrive late or incomplete, or contain
viruses.
>
> We do not accept responsibility for any errors or
omissions in this  
> message and/or attachment that arise as a result of
transmission.
>
> You should carry out your own virus checks before
opening any  
> attachment.
>
> Any views or opinions presented are solely those of the
author and  
> do not necessarily represent those of  
>
Quadriga._______________________________________________
> CentOS-devel mailing list
> CentOS-develcentos.org
> http://lists.centos.org/mailman/listinfo/centos-devel

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
Germany
2007-03-16 12:39:05
Thanks Jeff i'll do that, should have thought of that myself
really. Out 
of interest (if you know) is there a "proper" way
though (even if it's 
not released/stable etc)?


Jeff Johnson wrote:
> Easiest solution is likely to just generate a hdlist
(using genhdlist) 
> and do what you did before.
>
> There's a copy of genhdlist in rpm sources if you
need.
>
> 73 de Jeff
>
> On Mar 16, 2007, at 1:25 PM, Nicholas Byrne wrote:
>
>> Hi all,
>>
>> I'm trying to find a tool that calculates all
dependencies for a 
>> specific package or group of packages for use with
CentOS 5 (beta) 
>> with the intention of putting together a custom
single CD build of 
>> CentOS 5. With CentOS 4 i used a python script that
used the hdrlist 
>> module to find all dependencies which borrowed code
from a number of 
>> sources.
>>
>> I've looked at yumdownloader and how it checks
dependencies (using 
>> the --resolve option) but if i pass it the list of
packages defined 
>> in say the Base and the Core yum groups which
generally form an 
>> absolute minimal install i end up with about 200
packages. If i do a 
>> custom install (using beta 1 disks) and deselect
everything i end up 
>> with over 300 packages.
>>
>> So i'm guessing anaconda calculates dependencies in
a slightly 
>> different way, can anyone point me to files/code
where i should be 
>> looking to find out?
>>
>> Thanks very much in advance for help
>> Nick
>>
>>
>>
>>
>> This e-mail is the property of Quadriga Worldwide
Ltd, intended for 
>> the addressee only and confidential.  Any
dissemination, copying or 
>> distribution of this message or any attachments is
strictly prohibited.
>>
>> If you have received this message in error, please
notify us 
>> immediately by replying to the message and deleting
it from your 
>> computer.
>>
>> Messages sent to and from Quadriga may be
monitored.
>>
>> Quadriga cannot guarantee any message delivery
method is secure or 
>> error-free.  Information could be intercepted,
corrupted, lost, 
>> destroyed, arrive late or incomplete, or contain
viruses.
>>
>> We do not accept responsibility for any errors or
omissions in this 
>> message and/or attachment that arise as a result of
transmission.
>>
>> You should carry out your own virus checks before
opening any 
>> attachment.
>>
>> Any views or opinions presented are solely those of
the author and do 
>> not necessarily represent those of 
>>
Quadriga._______________________________________________
>> CentOS-devel mailing list
>> CentOS-develcentos.org
>> http://lists.centos.org/mailman/listinfo/centos-devel
>
> _______________________________________________
> CentOS-devel mailing list
> CentOS-develcentos.org
> http://lists.centos.org/mailman/listinfo/centos-devel
>



This e-mail is the property of Quadriga Worldwide Ltd,
intended for the addressee only and confidential.  Any
dissemination, copying or distribution of this message or
any attachments is strictly prohibited.

If you have received this message in error, please notify us
immediately by replying to the message and deleting it from
your computer.

Messages sent to and from Quadriga may be monitored.

Quadriga cannot guarantee any message delivery method is
secure or error-free.  Information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.

We do not accept responsibility for any errors or omissions
in this message and/or attachment that arise as a result of
transmission.

You should carry out your own virus checks before opening
any attachment.

Any views or opinions presented are solely those of the
author and do not necessarily represent those of
Quadriga._______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
United States
2007-03-16 13:02:35
On Mar 16, 2007, at 1:39 PM, Nicholas Byrne wrote:

> Thanks Jeff i'll do that, should have thought of that
myself  
> really. Out of interest (if you know) is there a
"proper" way  
> though (even if it's not released/stable etc)?
>

AFAIK, the replacement is rpm-metadata xml instead of hdlist
headers.

hdlist headers are dirt simple compared to the tools
necessary to
parse xml.

FYI, rpm-4.4.3 and later has a -H,--hdlist command to query
hdlist's

E.g.
	rpm -qa -H
displays all the headers in a hdlist.

There's also a -T to display the order in which rpm would
install, as
     rpm -q -HT

Some of that functionality might be useful no matter what
rpm you have
chosen to install and use.

73 de Jeff

>
> Jeff Johnson wrote:
>> Easiest solution is likely to just generate a
hdlist (using  
>> genhdlist) and do what you did before.
>>
>> There's a copy of genhdlist in rpm sources if you
need.
>>
>> 73 de Jeff
>>
>> On Mar 16, 2007, at 1:25 PM, Nicholas Byrne wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to find a tool that calculates all
dependencies for a  
>>> specific package or group of packages for use
with CentOS 5  
>>> (beta) with the intention of putting together a
custom single CD  
>>> build of CentOS 5. With CentOS 4 i used a
python script that used  
>>> the hdrlist module to find all dependencies
which borrowed code  
>>> from a number of sources.
>>>
>>> I've looked at yumdownloader and how it checks
dependencies  
>>> (using the --resolve option) but if i pass it
the list of  
>>> packages defined in say the Base and the Core
yum groups which  
>>> generally form an absolute minimal install i
end up with about  
>>> 200 packages. If i do a custom install (using
beta 1 disks) and  
>>> deselect everything i end up with over 300
packages.
>>>
>>> So i'm guessing anaconda calculates
dependencies in a slightly  
>>> different way, can anyone point me to
files/code where i should  
>>> be looking to find out?
>>>
>>> Thanks very much in advance for help
>>> Nick
>>>
>>>
>>>
>>>
>>> This e-mail is the property of Quadriga
Worldwide Ltd, intended  
>>> for the addressee only and confidential.  Any
dissemination,  
>>> copying or distribution of this message or any
attachments is  
>>> strictly prohibited.
>>>
>>> If you have received this message in error,
please notify us  
>>> immediately by replying to the message and
deleting it from your  
>>> computer.
>>>
>>> Messages sent to and from Quadriga may be
monitored.
>>>
>>> Quadriga cannot guarantee any message delivery
method is secure  
>>> or error-free.  Information could be
intercepted, corrupted,  
>>> lost, destroyed, arrive late or incomplete, or
contain viruses.
>>>
>>> We do not accept responsibility for any errors
or omissions in  
>>> this message and/or attachment that arise as a
result of  
>>> transmission.
>>>
>>> You should carry out your own virus checks
before opening any  
>>> attachment.
>>>
>>> Any views or opinions presented are solely
those of the author  
>>> and do not necessarily represent those of  
>>>
Quadriga._______________________________________________
>>> CentOS-devel mailing list
>>> CentOS-develcentos.org
>>> http://lists.centos.org/mailman/listinfo/centos-devel
>>
>> _______________________________________________
>> CentOS-devel mailing list
>> CentOS-develcentos.org
>> http://lists.centos.org/mailman/listinfo/centos-devel
>>
>
>
>
> This e-mail is the property of Quadriga Worldwide Ltd,
intended for  
> the addressee only and confidential.  Any
dissemination, copying or  
> distribution of this message or any attachments is
strictly  
> prohibited.
>
> If you have received this message in error, please
notify us  
> immediately by replying to the message and deleting it
from your  
> computer.
>
> Messages sent to and from Quadriga may be monitored.
>
> Quadriga cannot guarantee any message delivery method
is secure or  
> error-free.  Information could be intercepted,
corrupted, lost,  
> destroyed, arrive late or incomplete, or contain
viruses.
>
> We do not accept responsibility for any errors or
omissions in this  
> message and/or attachment that arise as a result of
transmission.
>
> You should carry out your own virus checks before
opening any  
> attachment.
>
> Any views or opinions presented are solely those of the
author and  
> do not necessarily represent those of  
>
Quadriga._______________________________________________
> CentOS-devel mailing list
> CentOS-develcentos.org
> http://lists.centos.org/mailman/listinfo/centos-devel

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
Australia
2007-03-16 15:05:02
Nicholas Byrne wrote:
> Hi all,
> 
> I'm trying to find a tool that calculates all
dependencies for a 
> specific package or group of packages for use with
CentOS 5 (beta) with 
> the intention of putting together a custom single CD
build of CentOS 5. 
> With CentOS 4 i used a python script that used the
hdrlist module to 
> find all dependencies which borrowed code from a number
of sources.
> 
> I've looked at yumdownloader and how it checks
dependencies (using the 
> --resolve option) but if i pass it the list of packages
defined in say 
> the Base and the Core yum groups which generally form
an absolute 
> minimal install i end up with about 200 packages. If i
do a custom 
> install (using beta 1 disks) and deselect everything i
end up with over 
> 300 packages.
> 
> So i'm guessing anaconda calculates dependencies in a
slightly different 
> way, can anyone point me to files/code where i should
be looking to find 
> out?
> 
> Thanks very much in advance for help
> Nick
> 
>

Is installing off a webserver and inspecting the logs too
difficult? It 
would tell you all the files used for that selection, and
the order 
which you could then use to optimise file ordering on the
ISO image.

-- 

Cheers
John

-- spambait
1aaaaaaacoco.merseine.nu  Z1aaaaaaacoco.merseine.nu

Please do not reply off-list
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
Australia
2007-03-16 15:07:08
Jeff Johnson wrote:
> Easiest solution is likely to just generate a hdlist
(using genhdlist) 
> and do what you did before.
> 
> There's a copy of genhdlist in rpm sources if you
need.
Still? I thought genhdlist had been retired, not required in
Anaconda 
using yum.





-- 

Cheers
John

-- spambait
1aaaaaaacoco.merseine.nu  Z1aaaaaaacoco.merseine.nu

Please do not reply off-list
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
United States
2007-03-16 15:28:01
On Mar 16, 2007, at 4:07 PM, John Summerfield wrote:

> Jeff Johnson wrote:
>> Easiest solution is likely to just generate a
hdlist (using  
>> genhdlist) and do what you did before.
>> There's a copy of genhdlist in rpm sources if you
need.
> Still? I thought genhdlist had been retired, not
required in  
> Anaconda using yum.
>

The guy had tools to deal with hdlist headers, nothing
more.

The copy of genhdlist.c is within rpm sources for reference
purposes.

genhdlist has never been anything but a sick'n'quick
encapsulation of  
package metadata.

R.I.P. Ptooey!

73 de Jeff

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
user name
2007-03-19 06:35:17
On 3/16/07, Jeff Johnson <n3npqmac.com> wrote:
>
> On Mar 16, 2007, at 4:07 PM, John Summerfield wrote:
>
> > Jeff Johnson wrote:
> >> Easiest solution is likely to just generate a
hdlist (using
> >> genhdlist) and do what you did before.
> >> There's a copy of genhdlist in rpm sources if
you need.
> > Still? I thought genhdlist had been retired, not
required in
> > Anaconda using yum.
> >
>
The last version of RPM2 on cpan had a mechanism for reading
hd lists
(don't think it made it in the docs though), and I believe
the python
rpm bindings have this too.

Cheers...james
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
Canada
2007-04-12 12:09:59
On Fri, 16 Mar 2007, Nicholas Byrne wrote:

> I'm trying to find a tool that calculates all
dependencies for a specific 
> package or group of packages for use with CentOS 5
(beta) with the intention 
> of putting together a custom single CD build of CentOS
5. With CentOS 4 i 
> used a python script that used the hdrlist module to
find all dependencies 
> which borrowed code from a number of sources.
>
> I've looked at yumdownloader and how it checks
dependencies (using the 
> --resolve option) but if i pass it the list of packages
defined in say the 
> Base and the Core yum groups which generally form an
absolute minimal install 
> i end up with about 200 packages. If i do a custom
install (using beta 1 
> disks) and deselect everything i end up with over 300
packages.
>
> So i'm guessing anaconda calculates dependencies in a
slightly different way, 
> can anyone point me to files/code where i should be
looking to find out?

I've just started looking at yumdownloader to perform that
task. I've 
found a --installroot patch for it, so that (hopefully and
apparently) it 
will not use the build system's rpmdb and will start with a
clean slate. 
It runs to completion, and does *some* dependency
resolution, but it's 
clearly deficient. There are *lots* of unsatisfied
dependencies in the 
resultant package set.

I think this is an issue to take to the yum-devel list. I'll
try bleeding 
edge yum/yum-utils and see if it does a better job.

---
Charlie

> This e-mail is the property of Quadriga Worldwide Ltd,
intended for the 
> addressee only and confidential.  Any dissemination,
copying or distribution 
> of this message or any attachments is strictly
prohibited.

[Rest of very silly email disclaimer snipped. Bah!
Lawyers!]
_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

Re: anaconda dependency calculation?
country flaguser name
Germany
2007-04-12 14:12:33
Thanks for the info, i'll keep eye on that list to see what
you 
discover. I used genhdlist as per v4.x which worked fine
with a few 
tweaks. I've now got a pretty solid respin.

However i came across the redhat buildsys list 
(https://www.redhat.com/archives/fedora-buildsys-list/) 
which i didn't 
know about until recently and then discovered Pungi on it 
(https
://hosted.fedoraproject.org/projects/pungi) for Fedora
which looks 
very promising.

I'm going to have a go at getting it to work for CentOS 5 at
some point, 
as really there shouldn't be too much in the way of
differences and it 
purports to do full dependency resolution.

Cheers
Nick

(Prior apologies for the long company sponsored signature
line that i 
always get told off about 


Charlie Brady wrote:
>
> On Fri, 16 Mar 2007, Nicholas Byrne wrote:
>
>> I'm trying to find a tool that calculates all
dependencies for a 
>> specific package or group of packages for use with
CentOS 5 (beta) 
>> with the intention of putting together a custom
single CD build of 
>> CentOS 5. With CentOS 4 i used a python script that
used the hdrlist 
>> module to find all dependencies which borrowed code
from a number of 
>> sources.
>>
>> I've looked at yumdownloader and how it checks
dependencies (using 
>> the --resolve option) but if i pass it the list of
packages defined 
>> in say the Base and the Core yum groups which
generally form an 
>> absolute minimal install i end up with about 200
packages. If i do a 
>> custom install (using beta 1 disks) and deselect
everything i end up 
>> with over 300 packages.
>>
>> So i'm guessing anaconda calculates dependencies in
a slightly 
>> different way, can anyone point me to files/code
where i should be 
>> looking to find out?
>
> I've just started looking at yumdownloader to perform
that task. I've 
> found a --installroot patch for it, so that (hopefully
and apparently) 
> it will not use the build system's rpmdb and will start
with a clean 
> slate. It runs to completion, and does *some*
dependency resolution, 
> but it's clearly deficient. There are *lots* of
unsatisfied 
> dependencies in the resultant package set.
>
> I think this is an issue to take to the yum-devel list.
I'll try 
> bleeding edge yum/yum-utils and see if it does a better
job.
>
> ---
> Charlie
>
>> This e-mail is the property of Quadriga Worldwide
Ltd, intended for 
>> the addressee only and confidential.  Any
dissemination, copying or 
>> distribution of this message or any attachments is
strictly prohibited.
>
> [Rest of very silly email disclaimer snipped. Bah!
Lawyers!]
> _______________________________________________
> CentOS-devel mailing list
> CentOS-develcentos.org
> http://lists.centos.org/mailman/listinfo/centos-devel
>



This e-mail is the property of Quadriga Worldwide Ltd,
intended for the addressee only and confidential.  Any
dissemination, copying or distribution of this message or
any attachments is strictly prohibited.

If you have received this message in error, please notify us
immediately by replying to the message and deleting it from
your computer.

Messages sent to and from Quadriga may be monitored.

Quadriga cannot guarantee any message delivery method is
secure or error-free.  Information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.

We do not accept responsibility for any errors or omissions
in this message and/or attachment that arise as a result of
transmission.

You should carry out your own virus checks before opening
any attachment.

Any views or opinions presented are solely those of the
author and do not necessarily represent those of
Quadriga._______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel

[1-10] [11]

about | contact  Other archives ( Real Estate discussion Medical topics )