HPUX Depothelper: How to Install Depot Package along with Dependencies

by SathiyaMoorthy on October 20, 2010

Installing software packages on HPUX can be little painful when it has lot of dependencies. depothelper utility will help you to download and install the software packages and all it’s dependencies automatically.

1. Install depothelper

Download depothelper from depothelper-2.00. Unzip, and install it as shown below.

# swinstall -s depothelper-2.00-hppa-11.31.depot

2. Use depothelper to install any software


# /usr/local/bin/depothelper PACKAGENAME

Example: Install zsh

# /usr/local/bin/depothelper zsh
Package-version      Comment              Download        Install
ia64-11.31           Package list         Using cache     OK
gdbm-1.8.3           Dependency (01/02)   OK              OK
ncurses-5.7          Dependency (02/02)   OK              OK
zsh-4.3.10           Requested            OK              OK

As shown in the above example, depothelper downloaded and installed the dependencies first before installing the zsh.

3. Download depots – Don’t install them

Sometimes you may want to just download the dependencies and the packages, but don’t want to install it. Use -n option to download the depot files, but skip the installation.

# /usr/local/bin/depothelper -n esound
Package-version      Comment              Download        Install
ia64-11.31           Package list         Using cache     OK
audiofile-0.2.7      Dependency           OK              Skipped (req.)
esound-0.2.41        Requested            OK              Skipped (req.)

Those downloaded files will be available in the path /usr/local/lib/depothelper/, as shown below.

# cd /usr/local/lib/depothelper/
# ls
audiofile-0.2.7-ia64-11.31.depot.gz   esound-0.2.41-ia64-11.31.depot.gz

4. Remove downloaded depots

You might want to remove the downloaded depots after it got successfully installed to free-up some space on the system. Use -r option, which downloads the depot, installs it, and removes it.

# /usr/local/bin/depothelper -r cscope
Package-version      Comment              Download        Install
ia64-11.31           Package list         Using cache     OK
bison-2.4.1          Dependency (01/04)   OK              OK (+ deleted depot)
flex-2.5.35          Dependency (02/04)   OK              OK (+ deleted depot)
m4-1.4.15            Dependency (03/04)   OK              OK (+ deleted depot)
regex-0.12           Dependency (04/04)   OK              OK (+ deleted depot)
cscope-15.7a         Requested            OK              OK (+ deleted depot)

5. Depothelper Usage

For usage instructions, execute the command with -?.

# /usr/local/bin/depothelper -?
depothelper: Syntax display requested

Syntax: depothelper [options] package[-version] [package[-version]...]

Options are as follows:
-a  specifies the machine architecture (ia64|hppa)
-c  specifies the cache directory for downloaded files
-e  set number of days before cache package expiry (default 93)
-f forces depot downloads/installs, even if already downloaded/installed
-h (or -?) displays this syntax message
-l [package[-version]...] lists packages with their dependencies. If no
   parameter is supplied, all installed packages are displayed
-n will download the depots but not install them. If -u is also supplied,
   then a list of depots (including any dependencies) to be uninstalled
   will be displayed rather than actually being uninstalled
-o  specifies the depot OS version to download (11.11|11.23|11.31)
-p  specifies that an FTP proxy server will be used
-r will remove downloaded depots that successfully installed
-u uninstalls the specified packages and if possible, uninstalls
   their dependencies as well

If -a/-o don't specify ia64/11.31, then -n is assumed (i.e. no install)

Linux Sysadmin Course Linux provides several powerful administrative tools and utilities which will help you to manage your systems effectively. If you don’t know what these tools are and how to use them, you could be spending lot of time trying to perform even the basic administrative tasks. The focus of this course is to help you understand system administration tools, which will help you to become an effective Linux system administrator.
Get the Linux Sysadmin Course Now!

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: