You are not logged in.

#1 2009-07-20 14:18:35

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

[SOLVED] Who owns rc.conf (splashy deleted it)?

Today I removed splashy-theme-darch, splashy, directfb and initscripts-splashy. I also commented out the line about splashy in /etc/rc.conf before removing those packages. Now I don't have /etc/rc.conf anymore! I tried to restore the basic rc.conf by reinstalling its package, but:

[root@matrux ~]# pacman -Qo /etc/rc.conf
error: failed to read file '/etc/rc.conf': No such file or directory
[root@matrux ~]# touch /etc/rc.conf
[root@matrux ~]# pacman -Qo /etc/rc.conf
error: No package owns /etc/rc.conf

Who owns /etc/rc.conf?

Last edited by cemsbr (2009-07-20 15:15:56)

Offline

#2 2009-07-20 14:27:20

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

/etc/rc.conf is owned by initscripts

Offline

#3 2009-07-20 14:33:19

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

Thank you. I didn't have this package. Such a important one shouldn't it be a dependency?

Offline

#4 2009-07-20 14:43:19

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

You had initscripts-splashy which also owns it.

Offline

#5 2009-07-20 14:46:07

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

So initscripts-splashy replaced initscripts. Unfortunately removing initscripts-splashy with "pacman -Rcsn" didn't show any dependency problem.

Offline

#6 2009-07-20 15:09:06

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

Because no other package you had installed depended on initscripts, thus no conflict.  I feel your pain though, I did the same thing the first time around.

Last edited by thayer (2009-07-20 15:09:42)


thayer williams ~ cinderwick.ca

Offline

#7 2009-07-20 15:14:16

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

Maybe there should be a meta-package like "archlinux-core" to avoid this.

Offline

#8 2009-07-20 16:44:46

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

cemsbr wrote:

Maybe there should be a meta-package like "archlinux-core" to avoid this.

You mean like the base group?

Offline

#9 2009-07-20 17:14:26

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

Lars Stokholm wrote:
cemsbr wrote:

Maybe there should be a meta-package like "archlinux-core" to avoid this.

You mean like the base group?

No, I didn't. initscripts already belongs to the base group. I meant a meta-package, a package that only has dependencies. The problem with groups is that "pacman -Rcsn" (is there a more informative set of options?) doesn't warn the package belongs to a group (try "pacman -Rcsn initscripts", for example). In other words, nothing depends on initscripts, and dependencies are consistent without this package, but archlinux won't work as expected on next reboot.

I always remove packages with "Rcsn" to check if I'm going to break something. But this precaution wasn't enough when removing initscripts-splashy, so I lost /etc/rc.conf.

How can I know if a given package belongs to a group?

Offline

#10 2009-07-20 17:50:07

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

You shouldn't use -n because it removes all files even if they are in the backup array. Only using -R also cries if that package has deps.

Offline

#11 2009-07-20 17:51:44

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

I can see that initscripts-splashy backs up /etc/rc.conf. I think pacman should restore those backups when the program is uninstalled or at least ask or remind the user about it. Perhaps it does?

Last edited by Lars Stokholm (2009-07-20 17:53:35)

Offline

#12 2009-07-20 18:14:03

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] Who owns rc.conf (splashy deleted it)?

Lars Stokholm wrote:

I can see that initscripts-splashy backs up /etc/rc.conf. I think pacman should restore those backups when the program is uninstalled or at least ask or remind the user about it. Perhaps it does?

Probably I've deleted the backup long ago. Sometimes I search for *.pacnew and *.pacsave, apply some changes and then delete them. I shouldn't have found a reason to keep rc.conf and rc.conf.pacsave (or something like that).

Now I'm wondering if I have deleted other backups...

Offline

Board footer

Powered by FluxBB