PDA

View Full Version : Gentoo prebuilt packages



quizzelsnatch
October 26th, 2008, 03:58 AM
Is it possible to install prebuilt packages for gentoo under other operating systems, say ubuntu or arch?

trimeta
October 26th, 2008, 04:30 AM
You mean, take an existing .deb file and install it under Gentoo? You can "emerge dpkg" to get the dpkg tool, which will let you install .deb packages, but it won't handle dependencies properly, so you should only do this when there's no alternative. And even then, you should probably write an ebuild which checks the dependencies and then calls dpkg to install the .deb file.

As for Arch, I don't know what their package format is or whether one could use their packages within Gentoo.


Alternatively, if you mean taking a Gentoo-built package and rolling it into a .deb or Arch-format for installation under Ubuntu or Arch...I have no idea.

quizzelsnatch
October 26th, 2008, 05:40 AM
The latter, taking a prebuilt gentoo package and turning it into a .deb or just installing it into a different operating system (possibly the same computer, say chrooting into a gentoo install, building a package and moving it to ubuntu or arch and installing it there)

trimeta
October 26th, 2008, 06:30 AM
Though Gentoo does hava a binary package format, I have no idea what it looks like, and doubt that alien or whatever can natively import it.

spupy
October 26th, 2008, 12:31 PM
You can create a binary package from any program you have installed in gentoo. I just looked into one of these binary packages. They are tbz2 archives. It contains all root folders which contains files of the program. For example, the package of aterm has:

/usr/bin - the executable binary is here
/usr/share/man - the man pages
/usr/share/docs - some documentation

It seems you can just extract this archive into your root folder and the program will be installed. Of course, you have to take care of the dependencies yourself.

quizzelsnatch
October 26th, 2008, 05:03 PM
That is interesting... Very. I may try to experiment with that.

spupy
October 26th, 2008, 06:33 PM
If you want I can send you some package that doesn't have many dependencies?

quizzelsnatch
October 26th, 2008, 07:00 PM
I'm actually just installing gentoo right now, it's compiling kde 4.1 and then it'll be almost fully usable, I think, I'll find out, I haven't spent too much time inside of it, I installed it all chrooted from arch and only confirmed that the kernel I compiled booted into the system. Thank you though.