First we list the packages and redirect that to a text file named packages.txt (note this is all one line):
root-shell-machine1# aptitude search '~i' |grep -v "i.A " |awk '{print $2}' > packages.txt
Then we want to copy that packages.txt file to the other machine (I'll let you figure that out). Once on the other machine, we want to update our Aptitude catalog and then install the listed packages:
root-shell-machine2# aptitude update
root-shell-machine2# aptitude install `cat packages.txt`
0 comments:
Post a Comment