Re: What should I do about /opt/freeware ?



David Kirkby schrieb:

On AIX 5.3 at least, IBM did not include bash. So I had to install
bash from some web site. But that put it in the same directory (/opt/
freeware) as what IBM do. for some programs (gzip etc). That seems a
bad idea IMHO. If the system gets screwed up, and I need to reinstall
AIX, it will overwrite anything I've put in /opt/freeware with its own
code. So I have to reinstall any programs which installed themselves
in /opt/freeware.

I guess you installed "bash" by using a binary package.
The biggest advantages of using packaged software are
- you can reinstall the packages
- you can deinstall the packages

Nothing under /opt/freeware (excluding the rpm itself) is part of AIX.
The rpm itself was updated by applying a ML or TL from IBM.
But: You can deinstall/reinstall the rpm if all RPM packages are deinstalled. If you don't like /opt/freeware, you can build your tools using another --prefix configure flag ;-)

But if your software expects predepencies in weird locations instead of the common ones, you will spend a lot of time with supporting your users.

For example:
I needed to build Python to build Mecurial. Mecurial needs a feature in Python which needs Python build against a shared lib of bzip2.
More or less funny things happy when the archive members naming within libbz2.a is slightly different. That's why such stuff resides at common places with common naming conventions. And it was IBM (and Bull) who initially created the packages for /opt/freeware and set the conventions.
There is no problem when others replace/update those packages with drop-in replacements.

that's what I did for the needed GTK2 (and dependencies) updates and that's is what Michael Perzl also always tries. And when I reported a runtime incompatibility at IBM an updated and fixed RPM was released within a week.
So try to use from /opt/freeware what is available first, if you need something updated/newer an updated but compatible package should considered.

You won't see the problems when compiling/porting on your machine. The problem will show up when you try to run the build on a different machine. (Huh... where is GCC's libstdc++... for e.g???)

So /opt/freeware isn't part of AIX but is *the* location for stuff shared amongst different programs that is not under "/usr".
Nothing bad about this, when only packaged software is installed there.

--
ULi
.



Relevant Pages

  • Re: FC4
    ... >> your regular user account was getting python 2.4.1. ... I am not sure about rpm but I know yum uses python. ... I have 39 packages with python in the name. ... M Mode differs ...
    (Fedora)
  • Re: How to upgrade python on Redhat?
    ... > that uses python for distribution-related tasks (configuration ... > managers, rpm package management, yum, etc). ... > of the packages listed above from srpms and reinstall them. ... over-write the system python and cause problems with other Red Hat ...
    (comp.lang.python)
  • Trying to Update to fc2 from rh 8.0 - RPM Segmentation Fault (Repost)
    ... I was trying to do this update via yum. ... The last packages I was able to ... ImportError: No module named rpm ... I think i need python 2.2 and all theese are using python 2.3. ...
    (linux.redhat.install)
  • Trying to Update to fc2 from rh 8.0 - RPM Segmentation Fault (Repost)
    ... via fc2 from rh 8.0 and my rpm broke in the process. ... The last packages I was able to ... to install or update. ... I think i need python 2.2 and all theese are using python 2.3. ...
    (linux.redhat)
  • Re: How to install Java/Frefox in FC6 -
    ... as the Fedora Extras guidelines suggest. ... There are numerous guides to rpm on the net. ... There are far too many broken tarballs out there for that. ... able to see from rpms downloaded and installed as binary packages. ...
    (Fedora)