Last active
May 31, 2017 06:44
-
-
Save danhper/5f8e0d31ad63b0910c2433a485cd0295 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PACKAGE=$1 | |
BASE_URL=http://ftp.jaist.ac.jp/pub/Linux/ubuntu | |
BASE_PATH=$HOME/install_root | |
DEB="$PACKAGE.deb" | |
path=$(apt-cache show $PACKAGE | grep "Filename:" | cut -f 2 -d " ") | |
wget $BASE_URL/$path -O $DEB | |
dpkg-deb -x "$DEB" $BASE_PATH | |
rm "$DEB" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment