* [gentoo-user] what's the difference between the emerge options -u and -n? @ 2020-11-28 20:00 n952162 2020-11-28 20:15 ` Arve Barsnes ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: n952162 @ 2020-11-28 20:00 UTC (permalink / raw To: gentoo-user 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? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] what's the difference between the emerge options -u and -n? 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 2020-11-29 9:55 ` Peter Humphrey 2 siblings, 0 replies; 4+ messages in thread From: Arve Barsnes @ 2020-11-28 20:15 UTC (permalink / raw To: Gentoo On Sat, 28 Nov 2020 at 21:04, n952162 <n952162@web.de> 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? In my book, there's only one reason to ever use -n, and that's if you've installed a package with -1 (--oneshot), and want to add it to your world file, so that it doesn't get depcleaned. Use -u for your regular system updates. Regards, Arve ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] what's the difference between the emerge options -u and -n? 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 2020-11-29 9:55 ` Peter Humphrey 2 siblings, 0 replies; 4+ messages in thread From: Dale @ 2020-11-28 20:28 UTC (permalink / raw To: gentoo-user 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 :-) :-) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] what's the difference between the emerge options -u and -n? 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 @ 2020-11-29 9:55 ` Peter Humphrey 2 siblings, 0 replies; 4+ messages in thread From: Peter Humphrey @ 2020-11-29 9:55 UTC (permalink / raw To: gentoo-user On Saturday, 28 November 2020 20:00:01 GMT 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? ... or did you mean -N? -- Regards, Peter. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-29 9:56 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2020-11-29 9:55 ` Peter Humphrey
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox