[ale] File System for Newbs
Ed Cashin
ecashin at noserose.net
Tue Jul 28 09:04:34 EDT 2009
On Tue, Jul 28, 2009 at 7:03 AM, James Sumners<james.sumners at gmail.com> wrote:
...
> So let's say I'm building package `foo`. Provided it comes with
> autoconf build scripts, I do:
>
> $ ./configure --prefix=/opt/foo
> $ make && make install
>
> Then I should have `/opt/foo/bin/foo`. When I decide that I no longer
> want the foo package installed I merely `rm -rf /opt/foo` and remove
> any path variables I had set for it.
A nice alternative to manipulating $PATH or other shell
things for each package is to use symlinks in /opt/bin and
/opt/man.
$ su
# cd /opt/bin
# file foo
foo: symbolic link to ../foo-1.2.2/bin/foo
# rm foo
# ln -s ../foo-1.2.3/bin/foo
# cd ../man/1
# rm foo.1
# ln -s ../../foo-1.2.3/share/man/1/foo.1
It's usually not too hard to use shell loops with "find" to handle
multiple files.
--
Ed Cashin <ecashin at noserose.net>
More information about the Ale
mailing list