View previous topic :: View next topic |
Author |
Message |
adamtheo Tux's lil' helper
Joined: 03 Sep 2002 Posts: 123 Location: Tallahassee, Florida USA
|
Posted: Wed Oct 08, 2003 8:26 am Post subject: Which Gentoo packages contain these files? |
|
|
I accidentally deleted a couple of files in /etc, and am wanting to know which packages contained them so I can re-install. *sheepish grin* Thanks.
'/etc/nsswitch.conf' and one other file in '/etc' that began with 'nss'. Unfortunately, I did not catch the name of it before I deleted it. Any ideas what It could have been? I had apache2, nss_ldap, pam_ldap, openldap, mysql, and postfix installed so far, along with the packages built during bootstrapping and system building during installation. _________________ * Theoretic Solutions "The Internet's Open Think-Tank" - http://www.theoretic.com |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Wed Oct 08, 2003 8:47 am Post subject: |
|
|
/etc/nsswitch.conf is in "baselayout". The other /etc/nss* files that I have are /etc/nsswitch.conf-winbind and /etc/nsswitch.conf-wins, both part of samba.
It doesn't sound like that's what you had. but it's all I know about. Hope it helps in any case _________________ Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis |
|
Back to top |
|
|
secondshadow Guru
Joined: 23 Jun 2003 Posts: 362
|
Posted: Wed Oct 08, 2003 2:33 pm Post subject: |
|
|
not that it will help with the files whos name you don't know, but you could always use 'qpkg' to find what package owns the files you do know the names of:
Code: |
bash-2.05b# qpkg -f /etc/nsswitch.conf
msys-apps/mbaselayout *
|
Also if you are reasonably sure that you know what package the others came from you could just use qpkg to list the contents of that package and then grep the output:
Code: |
bash-2.05b# qpkg -l baselayout |grep nss
/etc/nsswitch.conf
|
not that that would be a quick process if you had to sift through a couple of packages, but I'm sure theres a way to write a quick little script that would look through some file somewhere (possibly the world file?) and use qpkg to find all the files that contain nss Oh and before anyone asks my thoughts on how to do this, I'm not what you would call an expert scripter...acutally I'm not sure I'd even call myself an amature scripter. Though because of my UNIX class I'm taking I am starting to develope the toolset (in my mind) that would help me to write some decent scripts...now if only I knew some perl..... Anyhow, sorry about the ramble. Hope this helps, and if anyone knows of a good place to start learning that doesn't require $50 and a bookstore, it would be much appreciated. |
|
Back to top |
|
|
|
|
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
|
|