December 21, 2013

Purging i386 Packages From AMD64

After trying out the free demo of X-Plane and removing it from my 64bit installation, I wanted to purge all the i386 packages I no longer needed ( 224 packages ).

After some Google search I found this one-liner :

sudo apt-get purge  `dpkg --get-selections | grep i386 | awk '{print $1}'`

To simulate the above command you can add the -s option and see exactly what gets removed before actually running it....

sudo apt-get -s purge  `dpkg --get-selections | grep i386 | awk '{print $1}'`

After this operation, 492 MB disk space will be freed.
Do you want to continue [Y/n]? y

.......
.......
Removing libao4:i386 ...
Purging configuration files for libao4:i386 ...
Removing lib32asound2 ...
Purging configuration files for lib32asound2 ...
Removing nvidia-304 ...

......

I only had to reinstall nvidia-304 afterwards...

Links : http://askubuntu.com/questions/113301/how-to-remove-all-i386-packages-from-ubuntu-64bit
https://kura.io/2010/07/02/using-dpkg-selections-to-backup-and-install-packages/
http://linuxprograms.wordpress.com/tag/dpkg-get-selections/
http://www.cyberciti.biz/faq/bash-scripting-using-awk/

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.