Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-09-2017, 07:54 AM   #1
someone named bert
LQ Newbie
Registered: Nov 2013
Distribution: Slackware64 14.2
Posts: 19

Rep: Reputation: Disabled
Post install-info,, Info dir file not up to date

Hello dear people,
yesterday I wanted to read the Info manual for diff, and got a bit hung up on the way. While typing `info diff` in a terminal brings up the manual, in Emacs chording `C-h i m diff` results in the error message "Info file diff does not exist". The culprit is an entry in /usr/info/dir that names the respective info file as "diff". (The first line here:)
$ grep '(diff' /usr/info/dir
* Diff: (diff).                 Comparing and merging files.
* cmp: (diffutils)Invoking cmp.                 Compare 2 files byte by byte.
* diff: (diffutils)Invoking diff.               Compare 2 files line by line.
* diff3: (diffutils)Invoking diff3.             Compare 3 files line by line.
* patch: (diffutils)Invoking patch.             Apply a patch to a file.
* sdiff: (diffutils)Invoking sdiff.             Merge 2 files side-by-side.
             Comparing and merging files.
E.g. by typing diff3 instead of diff, I can get to the manual.

I don't remember at which Slackware version I last did a clean install, as opposed to an upgrade, but
$ grep '^usr/info/d' /var/log/removed_packages/diffutils-*
So I started looking into how this dir file is modified upon installation, and found it is by calling `install-info` in (logically).
I did not find any documentation on what happens on package removal with regards to the, besides the note at the bottom of the SBo template: "When upgradepkg is used, gets run twice. So don't put anything here that takes a long time to run." If anyone knows of such documentation, please point me there.
So, I suspect there is some magic in `removepkg` to deal with, but did it (a) fail only for me or is it (b) generally not equipped to handle changing names of the info files of a package, or (c) doesn't remove listings from the dir file at all?
In case (a) I would just remove the line in my `dir` file and be done with it.
In case (b), I see that you ideally would need to call `install-info --remove` with the old info file as an argument.

That's all, folks

Last edited by someone named bert; 10-09-2017 at 08:00 AM. Reason: typos
Old 10-09-2017, 02:13 PM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,890

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
removepkg does not 'undo' all of what the does. install-info is not called by removepkg.


info, package management

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
info on: make install is up to date MargNat Mandriva 1 01-17-2009 02:07 PM
Info's 'dir' file getting wrecked in -current? etrumbo Slackware 6 11-17-2008 02:04 PM
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 05:30 PM
How to restore /usr/share/info/dir file ptmono Linux - General 3 03-26-2006 04:58 PM
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 02:16 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration