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.
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-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
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-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-devel mailing list CentOS-devel@centos.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.
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-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-devel mailing list CentOS-devel@centos.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-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
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.
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
On 3/16/07, Jeff Johnson n3npq@mac.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
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.
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!]
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-devel@centos.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.
On Thu, 12 Apr 2007, Nicholas Byrne wrote:
Thanks for the info, i'll keep eye on that list to see what you discover.
For those on this list, I found an upgrade to yum 3.1.6 and yum-utils 1.1.2 and a few bug fixes did the trick.
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 looked at pungi, but found that 1) it needs absolutely bleeding edge yum to run and 2) I'm totally appalled the you still need to run it as root, because it runs the old anaconda-runtime stuff.
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.
I'd recommend that you stick to yumdownloader. I'd also suggest that you customise anaconda (if required) simply by providing an images/updates.img file, built with mksquashfs. No need for the arcanery of RedHat's stuff.
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?
One thing to bear in mind is that there are a few places where anaconda will add packages to your transaction set based on configuration choices you have made. I doubt that would explain the magnitude of difference you saw.
--- Charlie