How to restore /usr/share/info/dir file
Code:
How can I fix this problem? Thanks. |
cd /usr/info
rm dir for f in * ; do install-info $f dir ; done |
Thanks.
My mistake is to change /usr/share/info/dir file with 'install elib.info /usr/share/info/dir' command. This command replaced the dir file as elib.info file. I am using emacs as major editor. 'C-h i'(Info-directory-list) command show me the whole info page. But now I cannot see the whole tree of info page(top level dir menu). Just can see 3 info page. How can I restore this dir file back? How can I reinstall the info package(?) to restore the dir file? I need 'info-directory-list' on emacs. It is very useful to me. Thanks. |
This work is completed.
My fedora core 4 has totally 3 dir file. /usr/share/info/dir, /usr/local/info/dir, /usr/info/dir. To add all directory of info file in /usr/share/info/ to dir file I used 'install-info * dir' in /usr/share/info directory. But the result was bad. Code:
[root@localhost info]#install-info * dir Code:
[root@localhost info]# ls -l |awk '{print $9}' > list |
All times are GMT -5. The time now is 12:06 PM. |