FREESCO 0.3.x

ID #1206

Howto install add-on packages?

In FREESCO 03x the add-on package system is completely different from the much simpler package system of FREESCO 027. Unfortunally this also means that 027 packages cannot be installed on 03x.

There are two methods to install packages on FREESCO 03x, both require that you login as root via console or telnet/SSH. You cannot install packages via the web control panel!

  1. Use the setup program, then go into advanced mode and go to the packages menu:
                p. ADD-ON PACKAGES MENU
The current default package domain is set to
http://www.FREESCOsoft.net/home/0.3.x/

The current package save directory is set to
/www/packages

1. List installed packages
2. List available packages
3. Package documentation
4. Install package
5. Setup packages
6. Enable - Disable packages
7. Change the default domain for package installation
8. Change the default package download save directory
0. Uninstall package

Command me oh dark lord (x - cowardly surrender) []?


At the top of the menu the default download URL for package is displayed. This can be changed via the menu (option 7). Here's a sample run of the installation of the utils_1.1_dingetje package (bold is user input):

Command me oh dark lord (x - cowardly surrender) []? 4
Your router should be connected to the internet to perform this action.
Do you want to continue (y/n) []? y
URL to install from (ENTER for default url ) []?
Package name to install []? utils_1.1_dingetje
Trying pkg -i http://www.FREESCOsoft.net/home/0.3.x/utils_1.1_dingetje
Installing... utils_1.1_dingetje
Do you want to view the install/uninstall script (y/n) [n]?

GNU tools and other essentials

Checking versions... Pv0.3.0 0.3.x
Checking required temp space... Ok
Checking required disk space... Ok
Checking dependencies... Ok
Checking if package is installed... Ok
Checking for existing libraries... xxxx

Existing libraries to be over written
libproc.so.2.0.0 libdb.so.1 libm.so.5

***-- This package is officially unaproved at this time --***
***-- loading this program could damage your system --***

Do you want install this package (y/n) [y]?
Do you want to save a copy of this package (y/n) [n]?
http://www.FREESCOsoft.net/home/0.3.x/utils_1.1_dingetje.tgz (1129K)
/boot/1645~/utils_1.1_di [########################] 1129K | 68.66K/s
1156887 bytes transferred in 16.46 sec (68.64k/sec)
Unpacking utils_1.1_dingetje.tgz .. Done
This package contains the next tools:
....(info text removed to reduce size)
All tools are installed in /pkg/bin or /pkg/sbin.
Successfully installed... utils_1.1_dingetje


Press ENTER to continue


  1. Another method is to use the pkg command, issued in the root shell. A short usage message is displayed with command pkg -h
Usage: pkg CMD ARGs

CMD: -c Check URL for available packages list.
-i Install package from URL or DIR.
-r Install package from URL or DIR onto ramdisk!!!
The -r option runs without any questions.
-u Uninstall package NAME.
-l Show list and descriptions of installed packages.
-s Download package from URL and save in DIR.

URL: http://www.dom use given http or
ftp://ftp.dom or ftp site
/dir/file use local disk
-/ alias for http://default-web-site/
Examples:
pkg -c -/ # Get packages list from default site
pkg -c ftp://my.ftp.dom/pub/ # Get packages list from ftp server
pkg -i -/mc # Install mc from home site
pkg -i http://www.dom/mc # Install mc from http server
pkg -i /mnt/hd/dir/mc # Install mc from /mnt/hd/dir
pkg -u mc # Uninstall mc
pkg -s -/mc /mnt/hd/dir # Download mc from home site and save
# in /mnt/hd/dir.
pkg -s http://www.dom/mc # Download from www.dom and save in
# the default save directory.


Sample run:

[root@Freesco] pkg -i -/utils_1.1_dingetje
Installing... utils_1.1_dingetje
Do you want to view the install/uninstall script (y/n) [n]?

GNU tools and other essentials

Checking versions... Pv0.3.0 0.3.x
Checking required temp space... Ok
Checking required disk space... Ok
Checking dependencies... Ok
Checking if package is installed... Ok
Checking for existing libraries... xxxx

Existing libraries to be over written
libproc.so.2.0.0 libdb.so.1 libm.so.5 libbfd-2.9.1.0.19.so.0 libintl.so.1 libncurses.so.3.4

***-- This package is officially unaproved at this time --***
***-- loading this program could damage your system --***

Do you want install this package (y/n) [y]?
Do you want to save a copy of this package (y/n) [n]?
http://www.FREESCOsoft.net/home/0.3.x/utils_1.1_dingetje.tgz (1129K)
/boot/2221~/utils_1.1_di [########################] 1129K | 67.76K/s
1156887 bytes transferred in 16.67 sec (67.76k/sec)
Unpacking utils_1.1_dingetje.tgz .. Done
This package contains the next tools:
....(info text removed to reduce size)
All tools are installed in /pkg/bin or /pkg/sbin.
Successfully installed... utils_1.1_dingetje


Personally I prefer the pkg command over the menu, but I guess that's a matter of taste.

Last update: 2005-06-15 22:38
Author: dingetje
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 5 from 5 (2 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry