|
|
## Source Tarball
|
|
|
Unpack the source with
|
|
|
|
|
|
````
|
|
|
gzip -dc surfraw-version.tar.gz | tar xvvf -
|
|
|
````
|
|
|
|
|
|
Then, change into the surfraw-version directory, and type
|
|
|
|
|
|
````
|
|
|
./configure
|
|
|
|
|
|
make
|
|
|
````
|
|
|
|
|
|
then, as root:
|
|
|
|
|
|
````
|
|
|
make install
|
|
|
````
|
|
|
|
|
|
This will install surfraw into `/usr/local/`
|
|
|
|
|
|
For more detailed installation instructions, see the INSTALL file that is part of the surfraw distribution.
|
|
|
|
|
|
## Debian-based systems
|
|
|
### Debian Binary Package
|
|
|
To install the version in your Debian distribution, as root, type:
|
|
|
|
|
|
````
|
|
|
apt-get install surfraw surfraw-extra
|
|
|
````
|
|
|
|
|
|
To install the `.deb` files directly, as root, type:
|
|
|
|
|
|
````
|
|
|
dpkg -i surfraw_version_all.deb surfraw-extra_version_all.deb
|
|
|
````
|
|
|
|
|
|
Note that calling `dpkg` directly does not automatically install dependencies, and surfraw-extra in particular has many dependencies, so it is best to stick with `apt-get install` where possible.
|
|
|
|
|
|
### Debian source package
|
|
|
First you need to ensure you have the necessary packages installed to successfully build surfraw.
|
|
|
|
|
|
The following commands (run as root) should ensure you have everything necessary to build surfraw:
|
|
|
|
|
|
````
|
|
|
apt-get install build-essential fakeroot
|
|
|
apt-get build-dep surfraw
|
|
|
````
|
|
|
|
|
|
Download the `surfraw_version.dsc`, `surfraw_version.diff.gz` and `surfraw_version.orig.tar.gz` files, then type:
|
|
|
|
|
|
````
|
|
|
dpkg-source -x surfraw_2.2.9-1.dsc
|
|
|
````
|
|
|
|
|
|
This will unpack the source into a subdirectory called surfraw-version
|
|
|
|
|
|
Change into this directory, and type:
|
|
|
|
|
|
````
|
|
|
fakeroot debian/rules binary
|
|
|
````
|
|
|
|
|
|
This should produce files called surfraw_version_all.deb and surfraw-extra_version_all.deb in the directory above the surfraw source directory. To install these files, type as root:
|
|
|
|
|
|
````
|
|
|
dpkg -i surfraw_version_all.deb surfraw-extra_version_all.deb
|
|
|
````
|
|
|
|
|
|
## Arch Linux
|
|
|
Surfraw is in the Arch repositories, so you can install it with Pacman:
|
|
|
|
|
|
```
|
|
|
pacman -Syu surfraw
|
|
|
````
|
|
|
|
|
|
Or, you can install the current development version from the AUR, [surfraw-git](https://aur.archlinux.org/packages/surfraw-git/). |