我一直在玩/etc/asterisk目录,安装相关的pacakge( asterisk-config ),删除它,手动删除目录(只是玩弄得到configuration同步到我的configuration回购)。 现在我只想重新安装官方软件包,所以我这样做:
root@tethys:/etc# apt-get install asterisk-config root@tethys:/etc# tree asterisk/ asterisk/ └── manager.d
什么?! 空的?!? 我安装了吗?
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
确实! 让我检查包的内容:
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 ...
那么,我做了什么,包装将被安装,但内容无处可见?
而且, 更重要的是,无论我以前做过什么,我怎么能强制安装这些内容呢?
所以,我提出这个问题太早。 让我来回答一下参考。
configuration软件包是特殊的apt 。 为了让他们重新安装他们,首先他们必须被清除 。 这解决了这个问题:
apt-get purge asterisk-config apt-get install asterisk-config