Turns out emerge has this nice flag (excerpt from emerge(1) manpage): --buildpkgonly, -B Creates binary packages for all ebuilds processed without actually merging the packages. This comes with the caveat that all build-time dependencies must already be emerged on the system.
Best, mlen On Thu, Aug 9, 2018 at 9:29 AM Andreas Fink <finkandr...@web.de> wrote: > On Wed, 8 Aug 2018 19:12:37 +0200 > tu...@posteo.de wrote: > > > Hi, > > > > is it possible to go through process of installing a not-installed > > package from source to executable ... without actually install the > > package - so the system as such is not touched? > > > > Cheers > > Meino > > > > > > > > You can use ebuild for that. The commands to build without merging > would be > ebuild /usr/portage/my-package/my-ebuild-file.ebuild install > > This will download, unpack, build, and install the package into your > temporary portage build directory (usually /var/tmp/portage). It will > not resolve any dependencies though, this has to be done beforehand. > > The temporary install directory is called "image" in the temporary > directory. > > You can also go through the whole process step by step, > ebuild /usr/portage/my-package/my-ebuild-file.ebuild unpack > ebuild /usr/portage/my-package/my-ebuild-file.ebuild compile > ebuild /usr/portage/my-package/my-ebuild-file.ebuild install > ebuild /usr/portage/my-package/my-ebuild-file.ebuild qmerge > ebuild /usr/portage/my-package/my-ebuild-file.ebuild clean > > the qmerge command will install it into your system, so this is the > step, that you do not want to execute ;) > > Cheers > Andreas > >