Nekopkg download dependancies

From Nekochan
Revision as of 02:05, 20 April 2016 by Hightower2 (Talk | contribs) (Nekodeps.pl)

Jump to: navigation, search

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


Nekodeps.pl

Another option to convenienently install Nekoware packages and dependencies is nekodeps.pl.
It is available on http://techpubs.spinlocksolutions.com/irix/nekoware-installer/nekodeps.pl.

It can be used out-of-the-box on both Irix and GNU/Linux, and includes a built-in downloader in case Nekoware wget isn't installed yet.
(On Linux it is not possible to run 'inst' or install Irix software, of course, but the script can be used on it to list and/or download Nekoware packages.)

Usage is straightforward:

  • Download the script: http://techpubs.spinlocksolutions.com/irix/nekoware-installer/nekodeps.pl
  • Run: perl nekodeps.pl --config # (This will create simple local file/directory structure)
  • Run: perl nekodeps.pl --ion # (This will download the current descript.ion)
  • Run: perl nekodeps.pl --bootstrap # (This will install Nekoware wget)
  • Run: perl nekodeps.pl -h # (This will display program options and usage)
  • Run: perl nekodeps.pl -l # (This will list all available packages)
  • Run: perl nekodeps.pl <package names> # (This will generate a 'download & install' script for the packages you chose)

See Also