Take a look into the preinst script:
http://www.debian.org/doc/manuals/de...basics.en.html
In theory, you could do something like:
Code:
#!/bin/bash
# Double check root...
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
else
# Then add a repository the standard way.
apt-add-repository <repository>
# And now you could just install the packages here.
apt-get install <packages>
fi
And have the dependencies be apt... However, I don't think you can require an external PPA and have package dependencies from them, as the dependencies download first before preinst or anything else is run...
However, personally I would advise against this except for private use, as it is definitely not the best way to do things and is quite ugly.
Thanks,
Cipherboy LOC
Bookmarks