From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GmKhe-0003yP-3u for garchives@archives.gentoo.org; Tue, 21 Nov 2006 01:45:38 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAL1hQ23018011; Tue, 21 Nov 2006 01:43:26 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAL1fNtQ031058 for ; Tue, 21 Nov 2006 01:41:23 GMT Received: by ug-out-1314.google.com with SMTP id z38so1341643ugc for ; Mon, 20 Nov 2006 17:41:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GPHBtr838cu7T93jT/7vMg8mSyzXEg1jEfF2I8pXtJikn5qV+MG0HkzIDQn93Pcl7e3ngFZgOsWEPdwp7wlxcwENWfHC9Rjuzune2eYdpdiK9qk2Rb4FiV/Epp42+6E46nVCI/o88fF3QbOgDtq9B2fA0h3WudLk7jGWGCH9Tcc= Received: by 10.82.139.17 with SMTP id m17mr828153bud.1164073283139; Mon, 20 Nov 2006 17:41:23 -0800 (PST) Received: by 10.82.106.2 with HTTP; Mon, 20 Nov 2006 17:41:23 -0800 (PST) Message-ID: <7573e9640611201741l8234439gb9ac1824a0f9efb3@mail.gmail.com> Date: Mon, 20 Nov 2006 18:41:23 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] In need of script/command that will parse out all the packages from "emerge -avu world" In-Reply-To: <45624518.40406@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7573e9640611201259y2e557a6fv67f0f06ff1c0b40c@mail.gmail.com> <200611202216.kAKMGmgI026425@robin.gentoo.org> <97c95c3d0611201436k67100963of5378905d69fe65c@mail.gmail.com> <45624518.40406@gmail.com> X-Google-Sender-Auth: 42853d5ff837338d X-Archives-Salt: 10185355-d726-4cf8-926f-9480009090df X-Archives-Hash: 0eb1f5dd2d89f6cf7ca43d5ca3dd31fa On 11/20/06, b.n. wrote: > Boris Fersing ha scritto: > > let's say you want to install a package "A" which depends on "B" and > > "C", if you emerge these 3 packages with emerge -av A B C, the package > > B and C won't be removed when you'll uninstall A and you'll have > > unneeded dependencies installed on your system ! > > > > If you install only A with emerge -av A and let portage manage the > > dependencies for you, your system will still "clean" ! > > I always understood that "emerge -C" NEVER deleted dependencies (and i > fact, I've never seen it happening). > Isn't it why the dreaded "emerge depclean" exists? Boris has the right answer, but skipped a step or two in his explanation. You are correct that "emerge -C" will not remove dependant packages. But emerge --depclean never removes anything that is in your world file. So let's say you decide to play around with xfce4, so you do "emerge xfce4". This merges all packages that xfce4 depends on, but adds *only* xfce4 to the world file. And then you forget about it, a few months elapse, and a new version comes out. You decide to update using the script (or some other command) that ends up merging each single package without the --oneshot option. Now all of those xfce4 packages are in your world file, not just xfce4. Some more time passes, you realize you have a lot of crap you are not using installed, and decide to cleanup a bit, starting with "emerge -C xfce4". xfce4 is a metabuild that has no files, so that goes really quick, and doesn't really get rid of anything. Now you do "emerge --depclean world", figuring that will clean out dependancies. But because you have all of those xfce4 packages in your world file, depclean doesn't want to remove any of them. > By the way, I've never used --oneshot too... It is almost always a good idea when doing "some_command_to_create_pkg_list | xargs emerge". -Richard -- gentoo-user@gentoo.org mailing list