Gentoo Forums
Gentoo Forums
Quick Search: in
Deleted a sys file, how to replace? - Solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gphlynch
n00b
n00b


Joined: 10 Jun 2004
Posts: 6
Location: New Zealand

PostPosted: Fri Jun 18, 2004 8:28 am    Post subject: Deleted a sys file, how to replace? - Solved Reply with quote

Ok so I just did a stupid newbee thing :roll:

I was having problems with getting postfix and mutt setup and stupidly deleted /etc/init.d/domainname (I think I thought it was /etc/dnsdomainname or something)

Question is... how do I replace it? And for that matter, how do I replace any other system file I may accidentally delete without re-installing the entire os?


Last edited by gphlynch on Fri Jun 18, 2004 8:33 am; edited 1 time in total
Back to top
View user's profile Send private message
gphlynch
n00b
n00b


Joined: 10 Jun 2004
Posts: 6
Location: New Zealand

PostPosted: Fri Jun 18, 2004 8:32 am    Post subject: Reply with quote

ok, found semi solution in the form of looking in universal livecd

Still be interested in other answers though...
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Jun 18, 2004 8:47 am    Post subject: Reply with quote

You could re-emerge the package it came from. The downside to this is finding out which package you want! I think you'll have to ask on the forum for someone to do a qpkg -f /<deleted package>...

BTW: in the case of /etc/init.d/domainname, the package in question is baselayout...
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
vonhelmet
l33t
l33t


Joined: 06 Apr 2004
Posts: 770
Location: Somewhere in a school

PostPosted: Fri Jun 18, 2004 9:23 am    Post subject: Re: Deleted a sys file, how to replace? - Solved Reply with quote

gphlynch wrote:
Ok so I just did a stupid newbee thing :roll:

I was having problems with getting postfix and mutt setup and stupidly deleted /etc/init.d/domainname (I think I thought it was /etc/dnsdomainname or something)

Question is... how do I replace it? And for that matter, how do I replace any other system file I may accidentally delete without re-installing the entire os?


Depends on the file. If you know what it is you may be able to re-write it by hand.

Or re-emerge system or something.

Or be very careful about what you delete in the first place...
_________________
My blog
nvtuner software - enhance your AGP Geforce 6800 or 6200!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum