From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E4693158083 for ; Sun, 1 Sep 2024 23:56:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB06A2BC029; Sun, 1 Sep 2024 23:56:08 +0000 (UTC) Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C0AFE2A0F for ; Sun, 1 Sep 2024 23:56:08 +0000 (UTC) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e1a7c25e350so2334654276.3 for ; Sun, 01 Sep 2024 16:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725234967; x=1725839767; darn=lists.gentoo.org; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:from:to:cc:subject :date:message-id:reply-to; bh=Q/AldXUbn6/8iNuFgpFQcUoyWiPqyhiUtjCXeD82HIQ=; b=ldeXlaEmVMiQ229ht7ya68BaVm0yeo4mXKsNWFOOWlsHdCuErdjgwJd1LJIl8NZiI3 hu0rtovobO1Ct7eqw0svvYfhvCxwPffwOvR0g0b6UXNzjLkod/krB8NPL8CJBOKNUV5k /7MtVP9FTCtSHZ/ZLqnGNVkJOx9jz/jQJzpAcHZ3nsL5VyxFUGAkEJK4QpvtCC997ilT sDkwjHlsDaX15mvXMuGWkjrSj1QgqxRG/LvQPAz4KaGTokRZGsrkwvs0Lrimy8l++rah Y1Emq8M0L537rWtOum/5b6AYrtXp7Y6KpQe8igL52P/5aTg5iGt7R/D1Dxs4/dhSymkU 6NnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725234967; x=1725839767; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Q/AldXUbn6/8iNuFgpFQcUoyWiPqyhiUtjCXeD82HIQ=; b=AGuXGHFMBjuWcmD15CI7EvhkAbCxlEWBOgJvIBmYIYmBm4SCe9xuOy+V9C31DJ4JSo LGGyiLktw60JVghrh1MYEsqLnLJNE/QKwWM+vmYGd9gb1+oqKaG8wHNT2mrg5L+qGsth hLmNBLMVZeDbm+iNtAiSMrHEUL9pX4TALIchvf4q/d5zIs7iUsVSveFiKmIS76APAffA /uvXTgmjfQhKWCVl9DyIGT1UE7kwdehbtCjcckamFcJtHy3aeAflIXmVDqoKKM5zjbsf NcsLeIEqb+IWR9oJ+uUP+ERpe/y++DXCP9tgXWhByTzLLqbgvwW9S3vKsGhv6Os6xaBX EV0A== X-Gm-Message-State: AOJu0YytS11d7pZVul4jgWoNgHc1vMF+5/PxJBwfCyml2sokxM4AJYgC yNubR+S2jRN1lxoypZxPTnY/4d54Vr60/0FVP2n5/QNCP+ol47BxRVBbxw== X-Google-Smtp-Source: AGHT+IEbAGTVyKcWWElL8OUYThNk/VASFOhRAVXU01O1UpApI9S2/Xy+AZexeUG2t/xLJFH11kSUTw== X-Received: by 2002:a05:690c:4f0d:b0:6d3:9129:575f with SMTP id 00721157ae682-6d40ff1171fmr69449637b3.38.1725234967380; Sun, 01 Sep 2024 16:56:07 -0700 (PDT) Received: from [10.8.8.2] ([45.134.140.24]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6d38d3a061fsm12057467b3.72.2024.09.01.16.56.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Sep 2024 16:56:07 -0700 (PDT) Subject: Re: [gentoo-user] emerge - Tips and Tricks To: gentoo-user@lists.gentoo.org References: <9ce08b83-1bef-400c-b79a-e6415e4d9a17@gmail.com> From: Dale Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ AV7otKuZekDWiLi3Eig8tj5ZJiCNSYA/hIxzmexRP0GMqjitcX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sun, 1 Sep 2024 18:56:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <9ce08b83-1bef-400c-b79a-e6415e4d9a17@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 7da03061-b98f-4d6d-a39f-f08c8bec4244 X-Archives-Hash: b84022da2b1183eb08869ed7662bc34b Joe wrote: > Hello, > > > I'm looking for some tips and tricks regarding emerge. I know there is > a cheat sheet on what stuff you can do. But i would like emerge > exclusively . > > Normally i run emerge -uavDU --with-bdeps=y @world when i don't want a > reinstall of everything after a emerge --sync > > I run emerge -uavDN --with-bdeps=y @world when i want to reinstall or > like the manual says if there is a use flag that has been changed by > me or the dev. > > > Am i doing it right or what should i do that can help me and newer people > > > Thanks > > > Joe I been using Gentoo since 2003.  The emerge program has come a LONG way since then.  Over the years tho, I've refined my update process until I got to a point where it won't get any better.  You will still run into the occasional update that requires the use of a hammer but for the most part, this does well.  First thing.  I have a set of options in make.conf to cover most options.  That line looks like this.  EMERGE_DEFAULT_OPTS="--with-bdeps y --backtrack=500 --keep-going -v --quiet-build=y -1 --unordered-display --jobs=16 --load-average 8" A couple of those are either personal preference or machine dependent.  The bdeps option will cause extra rebuilds on occasion but it is rare that I get a seg fault or programs that just crash because the versions don't work well together.  Before that option was available, I used to do a emerge -e world to fix problems with programs not starting or crashing with a seg fault.  The bdeps options seems to have improved that a LOT.  The backtrack option just makes sure you only have to run emerge -a once.  It takes a while sometimes but it digs deep, real deep.  If a update can be done, it will find a way.  Honestly, 100 is likely more than enough in most all cases.  The keep-going option is good for when a packages fails, especially early on, and it stops the update.  On most occasions, emerge can regroup and continue on skipping only one or a very few packages.  It saves time in the long run if you start a update and don't monitor it.  The -1 option is the same as oneshot.  This prevents you from accidentally cluttering up the world file.  Something gives you problems and you are emerging by hand, if you forget to add the -1 as you work to fix it, it adds all those to the world file, including version if you specify one.  I'm not sure on the display option.  I added it for some reason, ages ago.  The job and load is different for each machine.  The line above is for a 16 core, 32 thread CPU with 64GBs of ram.  My old 8 core with 32GBs of ram was set to jobs 8 and load 3 I think.  Memory is one limiting factor there.  LOo, that qt package and a couple others can fail from lack of memory if set higher. Second thing.  My usual update process.  I sync first.  I run emerge -auDN world and check what it plans to do.  I mostly check USE flags.  Sometimes a USE flag will change and I have to adjust them a bit.  Sometimes on a per package basis, sometimes global.  Once I'm happy with what it wants to do, I hit the 'y' key and turn her lose.  On both my old rig and new rig, I have a second install that is in a chroot.  When I have packages that take a long time to build, I do my updates in the chroot first and then copy over the binaries.  Then I just need to do a emerge -aukDN world to make the update faster since it is already compiled.  This can be handy when you have some of the qt packages and the software has different versions and it causes problems.  Some updates midway can make it so certain programs won't launch at all.  I've had that happen with Kwrite several times, Dolphin a few times.  Once the update is done and you logou and back in, everything works again.  You just may run into problems during the update when some packages are old still and some are new.  This method lessens the time of that problem.  Once the update is done, I then run emerge -a --depclean and see if anything needs to be removed or if I need to add something I want to keep to the world file.  Oh, if you want to emerge something and add it to the world file so it gets updated and saved, emerge --select y plus your other options will override the oneshot option.  If you run a GUI, you need to logout and back in.  I sometimes switch to the boot runlevel and check for services that need to be restarted as well.  One could reboot and achieve the same goal.  This is Linux tho.  ;-)  Obviously, a news item can change that process.  If there is a news item with a different process, follow that for sure.  Following the news item to the letter is the best way.  The devs work out all the kinks and bugs before they post the news item.  Oh, this is another good line to have in make.conf.  FEATURES="-usersync userpriv usersandbox buildpkg sandbox parallel-fetch parallel-install" The ones I care about.  The buildpkg tells it to save binary copies.  This is a must if done in a chroot and you want to install elsewhere as binaries but comes in handy if you accidentally remove something and need it back fast or you need to restore something you removed and broke portage.  The fetch option just tells it to fork the download part and keep downloading until it has everything it needs to update.  The install option I think tells it to do more than one install at a time instead of one at a time.  I've never had a problem with this.  If something is going to clash, emerge sets a lock file and waits until the other package is installed.  I think the others were the default when I installed.  Check the man page maybe???? What you just read is from about 20 years of tweaking things on half a dozen rigs.  It should get you off to a good start for sure.  Dale :-)  :-)  P. S.  I'm starting to hate this keyboard on emails like this.  :-@  It does give me practice tho.  lol