From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] what's the difference between the emerge options -u and -n?
Date: Sat, 28 Nov 2020 14:28:43 -0600 [thread overview]
Message-ID: <457d554f-4329-27cc-8fee-9ef20a7d6597@gmail.com> (raw)
In-Reply-To: <33fe67a0-640d-5964-b82c-af041f2233ae@web.de>
n952162 wrote:
> Assuming no "emerge --sync" has been done, e.g.
>
> I've been using -u to mean, "don't update if there's nothing new" (which
> I would actually think would be the default). Maybe that's wrong? -n
> is better?
>
>
>
You may want to check the man page for emerge. I don't think -n is what
you think it is. From the man page:
--noreplace, -n Skips the packages specified on the command-line that
have already been installed. Without this option, any package atoms or
package sets you specify on the command-line will cause Portage to
remerge the package, even if it is already installed. Note that Portage
will not remerge dependencies by default. This option can be used to
update the world file without rebuilding the packages.
Here's another.
--update, -u Updates packages to the best version available, which may
not always be the highest version number due to masking for testing
and development. Package atoms specified on the command line are
greedy, meaning that unspecific atoms may match multiple versions of
slotted packages. This option also implies the --selective option.
I've been using Gentoo since about 2003. Over the years, I've learned
some ways to keep as sane a install as possible even when running some
keyworded packages. Between the command line options and default
options set in make.conf, this is what it ends up looking like:
emerge --newuse --oneshot --unordered-display --update --ask
--backtrack=100 --deep --jobs=5 --keep-going --with-bdeps=y
--reinstall=changed-use --quiet-build=n --regex-search-auto=y --usepkg
As far as I know, all those options are still valid. I haven't checked
into it in a while tho. When I finish a sync and issue the command, I
do this:
emerge -aUDN world
Each person has their own needs but if you check into those options, you
may find them working for you as well. From make.conf:
EMERGE_DEFAULT_OPTS="--with-bdeps y --backtrack=100 --keep-going -v -j5
--quiet-build=n -1 --unordered-display"
To me, the most important option is the -1, --oneshot, option. It helps
keep the world file from getting cluttered.
Hope that helps. If you need more info, just ask. I may have to make a
change myself if something has changed how it is used.
Dale
:-) :-)
next prev parent reply other threads:[~2020-11-28 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-28 20:00 [gentoo-user] what's the difference between the emerge options -u and -n? n952162
2020-11-28 20:15 ` Arve Barsnes
2020-11-28 20:28 ` Dale [this message]
2020-11-29 9:55 ` Peter Humphrey
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=457d554f-4329-27cc-8fee-9ef20a7d6597@gmail.com \
--to=rdalek1967@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