Re: newbie chroot type question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



3kr1ltp02@xxxxxxxxxxxxxx wrote:
> What I'm trying to do is setup a build enviroment for my users who depend 
> on certain releases of compiler & libraries that came with redhat9. My 
> approach has been to install a box from media that works an a build host 
> with the smallest number of packages, and then use that list 
> (/root/install.log) to 'rpm -Uvh --root /some/new/rootDir someRpm.rpm' over 
> the entire list on a non redhat9 box. Seems reasonable. The list is about 
> 500 packages.

It would be useful to use BuildRequires and file bug reports on any
package that did not declare them usefully.  Then you could use the
declared dependencies to generate the list.  :-) Otherwise your method
of generating the list is about as good as anything I can think up.  I
have used 'rpm -qa' to generate the list from working machines.

One problem with your method.  If you install rpms individually you
will still have problem if any of them declares a circular dependency.
Now those are Evil but I still see them periodically.  Therefore you
need to install the entire group at one time.  Or use a tool to sort
the dependencies for you such as apt4rpm or yum.

> Funny thing is, even though the list I have is ordered (I assume), I some 
> packages still fail to install because of failed dependencies.
> 
> So my questions are these:
> 1. Is there a better approach? Maybe this is a common task.

I have been snapshot'ing live working systems into build chroot's.
This works but I have been wanting to move to a better system which
uses the package manager such as you are suggesting.  So while this is
not an uncommon task I don't have great processes to suggest to you
for managing it.

> 3. Are there some commonly used tools out htere to help me resolve the 
> depdencies quicker?

I saw this announcement go by on freshmeat a little bit ago and have
not had time to look into it yet.  But it looks to do exactly what I
want to do.  It bootstraps a chroot of an rpm-based system.

  http://hackers.progeny.com/~sam/rpmstrap/

It is on my short list to try.  It looks very interesting to me.

Bob

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux