I have created a debian package which I install using sudo dpkg -i package.deb
. This works fine and all my files and configurations in the root of the packaged folder get extracted.
I then uninstall it using sudo dpkg -r package
, the file is still there, as expected.
I then removed the entire configuration folder using rm -rf /var/package/config/
, thinking I would simulate "fresh install", and tried installing it again. Now every resource is there, except the single file I have in my conffiles
file which is never installed again.
There is no prompt from the install command, which makes this difficult to detect before it is too late.
This is my folder structure:
deb
├── DEBIAN
│ ├── conffiles # /home/package/app/config/application.yml is listed here
│ ├── control
│ └── postinst
├── etc
│ └── init.d
│ └── startup
└── home
└── package
└── app
└── config
└── application.yml
|
└── stuff
└── common.txt
How do I prompt the user who runs the install package that the file will be added? How is this normally handled?
dpkg --purge packagename
– wurtel Jun 19 '18 at 09:53config
. I will try purging, thank you. – jokarl Jun 20 '18 at 08:19