public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Howto generate a list of installed packages?
Date: Mon, 28 Dec 2009 10:37:00 +0200	[thread overview]
Message-ID: <200912281037.00279.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <7bef1f890912272350v6fdfb583u6188fc22eff3b31b@mail.gmail.com>

On Monday 28 December 2009 09:50:31 Alan E. Davis wrote:
> Season's Greetings to one and all.
> 
> I would like to be able to generate a script or list of packages of some
> kind that would enable me to install Gentoo with an identical profile of
> installed packages.  Since with Debian/Ubuntu one can run
>    dpkg --get-selections > file
> and
>    dpkg --set-selections < file
> (or some such), one imagines that the Gentoo gurus/magicians are able to do
> something similar.
> 
> It takes me months to get a new machine up to speed.  In fact, I have just
> realized I don't have tcsh installed, something I hardly EVER use, but need
> to run a one of a kind script.
> 
> Can anyone make a suggestion?  Am I missing something?
> 
> Thanks
> 
> Alan Davis
> 


You already have such a thing - it's the entire contents of:

/etc/portage/*
/etc/make.conf
/etc/make.profile
/var/lib/portage/world*

Copy those files to a destination machine, adapt variable things like CHOST 
and ACCEPT_KEYWORDS to the new machine, and let portage do it's thing.

If you simply want a list of packages (sans USE flags etc), "emerge -e world" 
and parse it through your favourite text pipes (grep, sed, awk, etc) then 
redirect somewhere

If you want a list of installed packages with USE flags, "emerge -e world"

Note that these last two just give you a (mostly) human readable list. They 
are not much use to portage.

-- 
alan dot mckinnon at gmail dot com



  reply	other threads:[~2009-12-28 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-28  7:50 [gentoo-user] Howto generate a list of installed packages? Alan E. Davis
2009-12-28  8:37 ` Alan McKinnon [this message]
2009-12-28  8:43 ` Dale
2009-12-28  8:44 ` Norman Rieß
2009-12-28 12:46 ` Roger Mason
2009-12-28 15:57 ` Kenneth Prugh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200912281037.00279.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox