Weblog entry #15 for fsateler
#15
apt-listreadme
Posted by fsateler on Fri 6 Apr 2007 at 21:21
I've been thinking of writing apt-listreadme. It is basically the same as apt-listchanges, but it would list readmes instead of the changelogs. So it would have to extract both debian and upstream's readmes (obviusly this could be configured), display them (through less, a web browser) and/or mail them to someone. I have to consider also if it makes sense to write a new program instead of adding to apt-listchanges (which seems much more logical).
The idea is that whenever installing *new* packages, the readme should be shown, as I usually never read them and it is useful to read them. Obviously they shouldn't be displayed when upgrading or reinstalling a package.
The idea is that whenever installing *new* packages, the readme should be shown, as I usually never read them and it is useful to read them. Obviously they shouldn't be displayed when upgrading or reinstalling a package.
Comments on this Entry
Great idea! I'd use this.
Presumably you'd have it list the files in the package which would be installed to /usr/share/doc/*/README* and then do something with them. Which should be fairly easy if you're just going to reuse the apt-listchanges and/or apt-listbugs code.
Personally I'd use it before installing, I'd want to run "apt-listreadme" before running "aptitude install".
Presumably you'd have it list the files in the package which would be installed to /usr/share/doc/*/README* and then do something with them. Which should be fairly easy if you're just going to reuse the apt-listchanges and/or apt-listbugs code.
Personally I'd use it before installing, I'd want to run "apt-listreadme" before running "aptitude install".
[ Parent | Reply to this comment ]
Well, ideally both apt-listbugs and apt-listchanges should run before downloading the packages, but apparently apt can't currently handle that. So we're kind of stuck at asking after the packages download.
As an aside, apt-listchanges is written in python, which is a language I don't really like nor understand, so I guess it'll take me a while to familiarize with the current code.
--------
Felipe Sateler
As an aside, apt-listchanges is written in python, which is a language I don't really like nor understand, so I guess it'll take me a while to familiarize with the current code.
--------
Felipe Sateler
[ Parent | Reply to this comment ]
I wrote a program to do just this, It is in C but you might get some ideas there or even help improve it. http://www.magma.ca/~debian/
[ Parent | Reply to this comment ]
While the program is interesting, and some ideas could be taken from it, docread doesn't integrate with apt, which is what I want. The most important part is to display readmes and such before or right after the packages are installed.
--------
Felipe Sateler
--------
Felipe Sateler
[ Parent | Reply to this comment ]