sexta-feira, 5 de março de 2010

chroot with smart

Smart is a package manager tool that can handle many types of repositories. It has packages for all major Linux distributions: Debian, Fedora, Opensuse, Mandriva. Most of the RPM and Deb based distributions.

My problem was that I needed a packager tool that allow different channel configuration using diferent files for the configuration. I used to use zypper, but it only works with SuSE. You can find a package for Fedora Core 12, but didn't work for me.

The developers of YUM didn't like that idea, at least that what i read in the mailing list.

Smart solve my problems. I had to build a chroot system using packages from http repositories.

A combination of two options handle that, every time you call smart for your chroot system you will have to add this option:

smart -o rpm-root=/chroot-system --data-dir=/chroot-system/var/lib/smart/

I think this might help people that need to build chroot systems.