Hello everyone,
Here's a 300-line script I hacked together tonight to make it easier to download individual Nekoware packages with their dependencies.
It's not particularly pretty and it's for tcsh (what was I thinking...), but it works
Sample interaction:
It also has an 'update' operation, which should check for new versions of already installed packages & download them. I haven't had the chance of testing this yet, but it should work
EDIT: The update function now works.
Here's the script ( last updated 2011-02-07 ):
Installation instructions:
Note 1: You may have to re-open the shell for it to accept nekopkg.sh without the full path.
Note 2: If you place the script somewhere else, make sure you change the NEKOPKG variable in it!
The script requires the neko_curl package (if you prefer, you can use neko_wget by editing the script).
Run nekopkg.sh without arguments to see usage information.
I have used it to install packages on my new Origin and that's pretty much all the testing I've done -- treat this as a beta release and please report any bugs here.
Now I'm off to bed, good night...
Here's a 300-line script I hacked together tonight to make it easier to download individual Nekoware packages with their dependencies.
It's not particularly pretty and it's for tcsh (what was I thinking...), but it works
Sample interaction:
Code: Select all
[root@prometheus:~]# nekopkg.sh search auto
Matching packages: autoconf automake
[root@prometheus:~]# nekopkg.sh show autoconf
Package: autoconf
Filename: neko_autoconf-2.60.tardist
Version : 2
MD5sum : 95bea378566353e6837d5d6e03f54c10
Deps : m4,perl
[root@prometheus:~]# nekopkg.sh get autoconf automake
Downloading package: autoconf ...
######################################################################## 100.0%
Checking dependencies for 'autoconf' ...
Downloading package: perl ...
######################################################################## 100.0%
Downloading package: m4 ...
######################################################################## 100.0%
Downloading package: automake ...
######################################################################## 100.0%
[root@prometheus:~]# nekopkg.sh unpack-swmgr
Unpacking neko_autoconf-2.60.tardist ...
Unpacking neko_automake-1.9.6.tardist ...
Unpacking neko_m4-1.4.6.tardist ...
Unpacking neko_perl-5.8.8.tardist ...
[Software Manager launches]
[root@prometheus:~]# nekopkg.sh clean
Are you sure you want to remove /tmp/nekopkg-workdir [y/n]? y
Removing /tmp/nekopkg-workdir ...
It also has an 'update' operation, which should check for new versions of already installed packages & download them. I haven't had the chance of testing this yet, but it should work
EDIT: The update function now works.
Here's the script ( last updated 2011-02-07 ):
Installation instructions:
Code: Select all
# gunzip nekopkg.sh.gz
# chmod +x nekopkg.sh
# mv nekopkg.sh /usr/nekoware/bin/
Note 1: You may have to re-open the shell for it to accept nekopkg.sh without the full path.
Note 2: If you place the script somewhere else, make sure you change the NEKOPKG variable in it!
The script requires the neko_curl package (if you prefer, you can use neko_wget by editing the script).
Run nekopkg.sh without arguments to see usage information.
I have used it to install packages on my new Origin and that's pretty much all the testing I've done -- treat this as a beta release and please report any bugs here.
Now I'm off to bed, good night...