Writing a Script That Downloads Linux Packages and Dependencies Online

view story

http://stackoverflow.com – I Have Linux Debian on one my systems. But due to some reasons I dont have Internet on that machine for now. I have Internet on one other machine. I have been manually downloading .deb packages and the dependencies (grabbing them from packages.ubuntu.com). Sometimes the dependencies are more than 3 levels deep and its really frustrating, going through them manually. So I want to write a script that: Goes online on packages.ubuntu.com and searches for that I m looking by going to http://packages.ubuntu.com/search?keywords=package_name Then it goes into "lucid" links and from there it down (HowTos)