public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge completly a package but dont install it?
@ 2018-08-08 17:12 tuxic
  2018-08-09  7:28 ` Andreas Fink
  0 siblings, 1 reply; 5+ messages in thread
From: tuxic @ 2018-08-08 17:12 UTC (permalink / raw
  To: Gentoo

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge completly a package but dont install it?
  2018-08-08 17:12 [gentoo-user] emerge completly a package but dont install it? tuxic
@ 2018-08-09  7:28 ` Andreas Fink
  2018-08-09  7:48   ` Mateusz Lenik
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Fink @ 2018-08-09  7:28 UTC (permalink / raw
  To: gentoo-user

On Wed, 8 Aug 2018 19:12:37 +0200
tuxic@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge completly a package but dont install it?
  2018-08-09  7:28 ` Andreas Fink
@ 2018-08-09  7:48   ` Mateusz Lenik
  2018-08-09 17:28     ` tuxic
  0 siblings, 1 reply; 5+ messages in thread
From: Mateusz Lenik @ 2018-08-09  7:48 UTC (permalink / raw
  To: Gentoo

[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

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 <finkandreas@web.de> wrote:

> On Wed, 8 Aug 2018 19:12:37 +0200
> tuxic@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
>
>

[-- Attachment #2: Type: text/html, Size: 2203 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge completly a package but dont install it?
  2018-08-09  7:48   ` Mateusz Lenik
@ 2018-08-09 17:28     ` tuxic
  2018-08-09 17:59       ` Rich Freeman
  0 siblings, 1 reply; 5+ messages in thread
From: tuxic @ 2018-08-09 17:28 UTC (permalink / raw
  To: gentoo-user

On 08/09 09:48, Mateusz Lenik wrote:
> 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 <finkandreas@web.de> wrote:
> 
> > On Wed, 8 Aug 2018 19:12:37 +0200
> > tuxic@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
> >
> >

Hi,

thanks a lot for the info...I hadn't thought it would be THAT easy! :)

Cheers!
Meino



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge completly a package but dont install it?
  2018-08-09 17:28     ` tuxic
@ 2018-08-09 17:59       ` Rich Freeman
  0 siblings, 0 replies; 5+ messages in thread
From: Rich Freeman @ 2018-08-09 17:59 UTC (permalink / raw
  To: gentoo-user

On Thu, Aug 9, 2018 at 1:28 PM <tuxic@posteo.de> wrote:
>
> On 08/09 09:48, Mateusz Lenik wrote:
> > 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.
> >
>
> thanks a lot for the info...I hadn't thought it would be THAT easy! :)

I stole this script from somebody else on one of the lists.  Stick it
in your crontab after a sync and you'll find your daily updates go a
lot faster:

https://github.com/rich0/rich0-gentoo-scripts/blob/master/buildupdates

Obviously set the flags at the start of the script to suit your taste.

It basically uses this flag to build binary packages of anything it
can (can only do one level of deps obviously).  When you look at your
packages to update, and see chromium in there, and it takes 30 seconds
to install because it was built overnight, you'll thank whoever wrote
it...

-- 
Rich


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-09 18:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08 17:12 [gentoo-user] emerge completly a package but dont install it? tuxic
2018-08-09  7:28 ` Andreas Fink
2018-08-09  7:48   ` Mateusz Lenik
2018-08-09 17:28     ` tuxic
2018-08-09 17:59       ` Rich Freeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox