You are not logged in.

#1 2013-10-07 16:12:54

Edward E. Edwardson
Member
Registered: 2011-11-01
Posts: 36

[solved] Does anyone have a spare /etc/profile

I lost mine...
Where can I find the /etc/profile present after base install?

Last edited by Edward E. Edwardson (2013-10-07 16:41:57)

Offline

#2 2013-10-07 16:17:12

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [solved] Does anyone have a spare /etc/profile

$ pacman -Qo /etc/profile
/etc/profile is owned by filesystem 2013.05-2

This one's easy. Look up the filesystem package on the website, click "source files" and download "profile". Or reinstall the package, or extract just the one file from the filesystem package that you probably have in your pacman cache.

Last edited by Raynman (2013-10-07 16:18:06)

Offline

#3 2013-10-07 16:17:24

Edward E. Edwardson
Member
Registered: 2011-11-01
Posts: 36

Re: [solved] Does anyone have a spare /etc/profile

Got it.

touch /etc/profile
pacman -Qo /etc/profile
# => /etc/profile is owned by filesystem 2013.05-2
rm /etc/profile
pacman -S filesystem

Offline

#4 2013-10-07 16:32:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Does anyone have a spare /etc/profile

Instead of 'touch & pacman -Qo' way, you could use 'pkgfile': https://wiki.archlinux.org/index.php/FA … ge_is_X.3F
The file is available online, as Raynman mentioned: https://projects.archlinux.org/svntogit … filesystem


Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309


Edit: BTW, why don't you back /etc up?

Last edited by karol (2013-10-07 16:33:23)

Offline

#5 2013-10-07 16:42:53

Edward E. Edwardson
Member
Registered: 2011-11-01
Posts: 36

Re: [solved] Does anyone have a spare /etc/profile

karol wrote:

Edit: BTW, why don't you back /etc up?

That's what I thought after I deleted the file.

edit:

cd /etc
git init
git add -A .
git ci -m 'BTW, why don\'t you back /etc up?'

wink

Last edited by Edward E. Edwardson (2013-10-07 16:46:56)

Offline

Board footer

Powered by FluxBB