Please consider a donation to the Higher Intellect project. See https://preterhuman.net/donate.php or the Donate to Higher Intellect page for more info.

Nekopkg download dependencies

From Higher Intellect Vintage Wiki

Nekopkg

Script to discover and download dependencies and updates from a Nekoware repository.


Installation instructions

Prerequisites:

  • curl (modify the GET variable inside the script to use other downloaders such as wget)


Download the script, then enter the following commands as root:

# gunzip nekopkg.sh.gz
# chmod +x nekopkg.sh
# mv nekopkg.sh /usr/nekoware/bin/


Example usage

[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 ...


Operations

Overview of available operations
Operation Short form Description Example usage
list l Displays a list of all available packages.
nekopkg.sh list
show sh Shows additional information (version, MD5 checksum, dependencies, ...) about the specified package(s).
nekopkg.sh show xv
search s Displays a list of packages matching the specified keyword (case sensitive by default).
nekopkg.sh search auto
get g Download specified package(s) and all their dependencies.
nekopkg.sh get cvs make
unpack-inst ui Unpacks the downloaded tardist archives and runs 'inst'.
nekopkg.sh ui
unpack-swmgr us Unpacks the downloaded tardist archives and runs 'swmgr'.
nekopkg.sh us
update up Checks for updates to already installed packages and downloads newer versions.
nekopkg.sh up
clean c Removes the nekopkg work directory (/tmp/nekopkg-workdir by default). Append the 'dontask' parameter to omit prompt.
nekopkg.sh clean


Change log (current version is 0.9.2):

  • 2008-09-17 - initial release
  • 2009-03-09 - fixed a bug in the 'update' command
  • 2009-03-24 - added some extra error checking & 'list' command


See Also

Discussion on nekochan forum about it