LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-26-2006, 05:15 AM   #1
ptmono
LQ Newbie
 
Registered: Jun 2003
Location: Korea
Distribution: Fedora Core 4 and KDE
Posts: 4

Rep: Reputation: 0
How to restore /usr/share/info/dir file


Code:
[root@localhost elib-1.0]# install elib.info /usr/share/info/dir
Above command change my /usr/share/info/dir file so that my info page loss the original info page.

How can I fix this problem?

Thanks.
 
Old 03-26-2006, 05:39 AM   #2
Speek
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 103

Rep: Reputation: 31
cd /usr/info
rm dir
for f in * ; do install-info $f dir ; done
 
Old 03-26-2006, 03:03 PM   #3
ptmono
LQ Newbie
 
Registered: Jun 2003
Location: Korea
Distribution: Fedora Core 4 and KDE
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by ptmono; 03-26-2006 at 03:08 PM.
 
Old 03-26-2006, 04:58 PM   #4
ptmono
LQ Newbie
 
Registered: Jun 2003
Location: Korea
Distribution: Fedora Core 4 and KDE
Posts: 4

Original Poster
Rep: Reputation: 0
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
install-info: excess command line argument `ada-mode.gz'
install-info: excess command line argument `am-utils.info-1.gz'
install-info: excess command line argument `am-utils.info-2.gz'
install-info: excess command line argument `am-utils.info-3.gz'
install-info: excess command line argument `am-utils.info-4.gz'
install-info: excess command line argument `am-utils.info-5.gz'
install-info: excess command line argument `am-utils.info-6.gz'
install-info: excess command line argument `am-utils.info-7.gz'
install-info: excess command line argument `am-utils.info.gz'
install-info: excess command line argument `annotate.info.gz'
install-info: excess command line argument `as.info.gz'
install-info: excess command line argument `auctex.info.gz'
install-info: excess command line argument `autoconf.info.gz'
install-info: excess command line argument `automake.info-1.gz'
install-info: excess command line argument `automake.info-2.gz'
install-info: excess command line argument `automake.info.gz'
install-info: excess command line argument `autotype.gz'
install-info: excess command line argument `bash.info.gz'
install-info: excess command line argument `bc.info.gz'
install-info: excess command line argument `bfd.info.gz'
install-info: excess command line argument `binutils.info.gz'
install-info: excess command line argument `bison.info.gz'
install-info: excess command line argument `cl-1.gz'
install-info: excess command line argument `cl-2.gz'
install-info: excess command line argument `cl-3.gz'
install-info: excess command line argument `cl-4.gz'
install-info: excess command line argument `cl-5.gz'
install-info: excess command line argument `cl-6.gz'
install-info: excess command line argument `cl.gz'
install-info: excess command line argument `configure.info.gz'
install-info: excess command line argument `coreutils.info.gz'
.
.
.
I guess why this message occurred.('install-info `ls -l |awk '{print $9}'` dir' command take also same result.) So I make the list of commands.
Code:
[root@localhost info]# ls -l |awk '{print $9}' > list
[root@localhost info]# sed 's/^/install-info /' > list2
[root@localhost info]# sed 's/$/ dir/' > list
[root@localhost info]# chmod 755 list
[root@localhost info]# ./list
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 02:16 PM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 03:36 AM
Cannot login using X - something about missing file /usr/share/dbus-1/services Spiney Linux - General 2 05-02-2005 11:33 AM
restore file or dir from dump file brumela Linux - Newbie 3 09-08-2004 04:31 AM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM


All times are GMT -5. The time now is 05:37 AM.

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