Upgrade Backtrack 5 to Backtrack 5 R1
After BackTrack 5 R1 released, BackTrack is time to upgrade from 5. by using a short python script, we can already use BackTrack 5 R1 without having to re-download.
This script just simply want a bit to share:
#!/usr/bin/python
# Script to fully upgrade Backtrack 5 to Backtrack 5 R1
import os
print(‘apt-get update &&apt-get dist-upgrade -y’)
os.system(‘cd /tmp &&wget http://blankxys.web.id/wp-content/uploads/2011/08/kde-r1_32b’)
packageslist = open(‘/tmp/kde-r1_32b’)
lines = packageslist.readlines()
for packages in lines:
packages = packages[4:40]
#remove the + ‘-y’if you which to choose the packages to install
os.system(‘apt-get install ‘+ packages + ‘-y’)
packageslist.close()
#comment above if you don’t want to clean Backtrack
os.system(‘apt-get autoremove -y &&apt-get autoclean -y’)
Upgrade Backtrack 5 to Backtrack 5 R1, by using a script is only for backtrack 5 KDE 32bit
