List currently-installed packages

Registered by Scott Severance

sysres should be able to also keep track of which packages are installed, and automatically ignore packages that are autoinstalled or in an exclude list (if sysres were run on a new install, it would be useful to exclude all packages currently installed, except sysres). The list of all installed packages is in /var/lib/dpkg/status and the list of auto-installed packages is available in /var/lib/apt/extended_states.

I have some code for this already (I originally planned to start a separate project). It'd have to be re-worked to fit here, but it can already parse the relevant files and return a list of files. That's the majority of the work, I think.

Existing solutions are inadequare, IMO: One proposal in the sysres thread was written in C, which adds compatibility issues with this program, and a cursory glance at suggested that it worked as a daemon, which is totally unnecessary. LaRoza's package backup script is a shell script using zenity, which would be difficult to integrate into sysres. Furthermore, it doesn't skip auto-installed packages.

Blueprint information

Status:
Not started
Approver:
LaRoza
Priority:
Low
Drafter:
Scott Severance
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Not started
Milestone target:
None

Sprints

Whiteboard

(LaRoza) It sounds like a good idea. If you can get it to work with current trunk that would be best. It would, in my mind, work only for custom restore points which aren't hidden. I think it should also be separate from the function and a completely different option.

To have this part of sysres it has to be simple. I don't want two programs pushed into one (avoid feature creep).

For this, it can be in SystemRestore/, but I suggest its own namespace. clip.py should have the basic interface for it.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.