Re: dpkg funnies
>>>>> "Pablo" == Pablo Baena <greyheart@fnmail.com> writes:
Pablo> We do need an option in dselect that, when you screw up your
Pablo> selections, it'd search your installed packages, and reset
Pablo> all the selections to the installed/not-installed flag according
Pablo> to what it sees. dselect rules until I make a stupid mistake and
Pablo> I have to see every single package to come back to the normal
Pablo> state.
Pablo> Pablo.
Pablo> Valentijn Sessink <valentyn+killspam@nospam.openoffice.nl> writes:
Pablo> .....
>> Now after that, "dselect" showed that a whole bunch of stuff had an
>> "install" selection state but was not installed (why?). I wanted to get
>> rid of those. Now the only way to change package selection states seems
>> to be "dselect" and "dpkg --set-selections".
Pablo> .....
Once I was using `dired' in XEmacs to change the ownership and
permissions of a directory. I had the cursor on the name of the
subdirectory I wanted to chown, and used `!', then typed, rather
absentmindedly, as though I was working in a terminal instead of
`dired', "chown user.group .", when it should have been "chown
user.group *". (dired uses the * as a placeholder, like `{}' does
for find -exec)
I sat there wondering why it was taking so long... I had been
standing in `/'. Ooooops!
I would really like it if `dpkg' (or a related tool) had a way to
reset the owner and permissions after a screw up like that.
I wound up going over to another machine, running a `find -printf' to
construct a database, then using a shell/awk command to set the owner
and permsissions to close to what they had been. It wasted an entire
afternoon.
If anyone feels like writing that tool for inclusion in Debian, it
would be really great of you.
Reply to: