Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
nano getdebs.sh && chmod +x getdebs.sh && ./getdebs.sh
#!/bin/bash

package=ssmtp

apt-cache depends "$package" | grep Depends: >> deb.list

sed -i -e 's/[<>|:]//g' deb.list

sed -i -e 's/Depends//g' deb.list

sed -i -e 's/ //g' deb.list

filename="deb.list"

while read -r line
do
    name="$line"
    apt-get download "$name"
done < "$filename"

apt-get download "$package"
 
tar zcvf "$package"_w_deps.tgz *.deb

mailutils_w_deps.tgzssmtp_w_deps.tgz

  • No labels

1 Comment