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: 555

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:

root@tethys:/etc# apt-get install asterisk-config
root@tethys:/etc# tree asterisk/
asterisk/
+-- manager.d

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

root@tethys:/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:

root@tethys:/etc# dpkg -L asterisk-config
...
/etc
/etc/asterisk
/etc/asterisk/res_snmp.conf
/etc/asterisk/dbsep.conf
/etc/asterisk/cel_custom.conf
/etc/asterisk/cel.conf
/etc/asterisk/meetme.conf
/etc/asterisk/jingle.conf
/etc/asterisk/queuerules.conf
...

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