Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544320 - list-gentoo-packages-0.2
Summary: list-gentoo-packages-0.2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 12:48 UTC by Michael Lawrence
Modified: 2017-05-16 20:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild template for this shell script. (list-gentoo-packages-0.2.ebuild,1.11 KB, application/octet-stream)
2015-03-24 12:48 UTC, Michael Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lawrence 2015-03-24 12:48:30 UTC
Created attachment 399598 [details]
ebuild template for this shell script.

app-admin/list-gentoo-packages


list-gentoo-packages.sh 
its Lists Everything use flags "the kitchen sink", Everything.

rather useful in support , ie pastie.org of packages etc , or other maladies 

ie can be useful in help or system diagnostics , 

IE: or failing hard drive to atleast get the package lists with all use flags , and rescue some files 
lists even dependent packages not in the world file. 
chroot >> usb was able to get my files , much of my system saved , as smart was warning me of disk-cave-in was coming soon ( and files & dirs were starting to bit-root nasty bad like poof 3 days latter gone,) prior to upgrading/replacing drive. 

http://nikita.melnichenko.name/blog.php?id=13&topic=gentoo-list-installed-packages-with-use-flags
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-03-25 22:22:04 UTC
There already is an application that does this in gentoolkit.  It is the enalyze application and the analyze submodule.  It has been for several years already.

$ enalyze analyze -u packages


This bash script runs equery and parses output.  Not a reliable method.  And from my experience much slower that running proper python and portage api's


The enalyze command is designed to be extended with more sub-modules and different reports.  If there is something else desired.  It should not be difficult to extend.  We are always around to help you with it and will gladly review any patches for improved usability.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-03-26 21:15:38 UTC
Snipit from an email..

wasn't aware of any other option at the time both windows/Linux platters
were starting to[?] fail in my laptop ​[?]
half the time whole folders would Bork into the aether , on ext4

anyhow I could always enalyze analyze -u packages into the bash script
(same name just pruned allot)
as a lazy alias or newbie  (& for were new users has clue 0< , or when shit
hits the fan, $user panic=max)
with a reverse dep on gentoolkit. leave it in overlay for lulz./ testing
ebuild and or as an self-learning experiment. sys-admin to for being less
forgetful.
 (*You suck less at Ebuilds +5 skill points only 1 million to go to be a
master* )

=============

Ok, when you have your script updated, report back here and we'll see about getting the ebuild in tip top shape for addition to the tree.

FYI the enalyze module also has a rebuild submodule capable of generating new package.* files.  The enalyze modules could be extended to save the generated list to use as input to creating the new package.* files.  That could also help in re-building a system after major failure.
Comment 3 Jonas Stein gentoo-dev 2017-05-16 20:30:50 UTC
I close this ticket, because it is a bit unclear and there is nothing more we can do. 
see also 618664.