I have a Kali Linux installed recently, but due to its inflexible mirror selection, all deb packages are downloaded from a mirror that I don't trust. Is it possible to tell apt / dselect to re-download and reinstall all packages, assuming sources.list has been updated to use new mirror?
|
As Alex pointed out:
The first one makes sure apt's cache is empty. That way apt-get will need to download the packages from the repositories. The second, first you need a list of all installed packages, which is what the
The For both methods you will end without any automatically installed packages, so you must use |
|||||||||||||||||||||
|
|
The answers here helped me solve the problem, this solution probably not the most efficient but gets the job done.
|
|||||
|
|
I used this script and was asked from time to time to give a Y(es)
Than the script went on.
But because it takes quite a while this makes the time to complete much longer. I changed the script with inserting
|
||||
|
|
apt-get clean && apt-get install --reinstall $(dpkg --get-selections | grep -w 'install$' | cut -f 1)? – Alex Oct 16 '14 at 15:30