255 63 51KB
English Pages [1] Year 2020
HOW TO REMOVE ANY PACKAGE MANUALLY The users of Debian and Co, or it derivatives like *buntu or *mint might be very familiar with dpkg, apt. and aptitude. But removing some packages completely may end-up in a total disaster like wiping-out whole system. Disneys TiaNee This document outlines the general procedure for removing any particular package manually. 1) dpkg-repack Use dpkg-repack and repack (back-up) the package that needed to be removed. dpkg-repack This will repack and gives package.deb which can be re-installed if more packages or system breaks due to inter-weaven dependancies. 2) dpkg-database -> /var/lib/dpkg/info dpkg installed packages database can be found in /var/lib/dpkg/info folder for a particular package, where as, package.list file contains the list of the files installed by a particular package. And, package.conf files contains list of configuration files for a particular package. It is always recommended to back up all configuration files that are listed in package.conf. The files in package.list and package.conf can be removed manually by using rf command. Or, simply write down a bash script which can read package.list and package.conf files line-by-line, and remove it automatically in a batch. A useful script for read files line-by-line can be found at: http://gen.lib.rus.ec/book/index.php?md5=354EBE156E37B883F314E5CC898C660F
Modify this script. -Chickita.