Ubuntu: package installed, but files missing?

Posted by jeckyll2hide on Server Fault See other posts from Server Fault or by jeckyll2hide
Published on 2014-08-22T09:44:47Z Indexed on 2014/08/22 10:21 UTC
Read the original article Hit count: 348

Filed under:

I have been playing around with the /etc/asterisk directory, installing the related pacakge (asterisk-config), removing it, removing the directory manually (just playing around to get the configuration synced to my configuration repo). Now I just want to reinstall the official package, so I do:

[email protected]:/etc# apt-get install asterisk-config
[email protected]:/etc# tree asterisk/
+-- manager.d

What?! Empty?!? Have I installed it?

[email protected]:/etc# dpkg --get-selections | grep asterisk
asterisk                                        install
asterisk-config                                 install
asterisk-core-sounds-en                         install
asterisk-core-sounds-en-gsm                     install
asterisk-modules                                install
asterisk-moh-opsound-gsm                        install
asterisk-voicemail                              install

Indeed! Let me check the contents of the package:

[email protected]:/etc# dpkg -L asterisk-config

So, what have I done that the package will get installed, but the contents are nowhere to be seen?

And, more importantly, how can I force the contents to be installed, no matter what I have done before?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about apt