1

How would I remove the config files of any package, or do apt-get purge and re-install it without removing any of its dependencies?

Thanks!

1

You can use dpkg :

sudo dpkg -P --force-all (name of package)
| improve this answer | |
  • welcome any time – nux Mar 8 '14 at 2:07
0

Try using sudo apt-get remove pkg. Replace pkg with the package name you want to remove and it will leave the dependencies alone. Then use sudo apt-get install pkg to re-install the packages.

| improve this answer | |
  • Thanks for the reply. I tried it and apt "threatens" to remove many other packages (its dependencies) and even then, it wouldn't remove the config files, would it? – Bentley Carr Mar 8 '14 at 2:04
  • 1
    To remove the config files, use purge instead of remove – s3lph Mar 8 '14 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.