On Sun, 4 Jun 2006, 19:51 GMT+02 Ralf S. Engelschall wrote:

> On Sun, Jun 04, 2006, Robert Allerstorfer wrote:

>> Would it be best to get started on RHEL3 to fetch
>> ftp://ftp.openpkg.org/release/2.5/UPD/openpkg-2.5.2-2.5.2.src.sh
>> and do a
>> 'sh openpkg-2.5.2-2.5.2.src.sh --prefix=/openpkg --user=openpkg 
>> --group=openpkg'?

> Yes, exactly. The provided binaries are for bootstrapping (in case
> no build environment is available at all) and emergency (you have
> to recreate an instance at 3am ;-) situations only. For all other
> situations stick with the source RPMs. OpenPKG's focus is on those
> anyway.

Thank you for confirming that. I have now successfully installed
openpkg-2.5.2-2.5.2 on ix86-rhel3 by just executing

$ sh openpkg-2.5.2-2.5.2.src.sh --prefix=/opt/openpkg --user=openpkg 
--group=openpkg
$ su root -c "sh openpkg-2.5.2-2.5.2.ix86-rhel3-oop.sh"

which went smoothly. Very easy and well guided steps! To make things
more handy, I then did

# echo "alias openpkg='/opt/openpkg/bin/openpkg'" >> /etc/bashrc

so I just can enter 'openpkg' instead of the full path to it when
using it (takes effect after the next login).

>> (...) can I completely
>> uninstall OpenPKG, including removal of the new users and crontabs, by
>> doing a
>> '/openpkg/bin/openpkg rpm -e openpkg'
>> (just in case there is a reason for that)?

> Yes, of course! OpenPKG is 100% non-intrusive to the underlying OS. It
> has just six small connection points (file /etc/openpkg, 3 lines in
> /etc/passwd, 3 lines in /etc/group, a few lines in the root crontab, a
> run-command script and the filesystem top-level directory). It does not
> touch anything else in your OS and those connections points are removed
> under "/openpkg/bin/openpkg rpm -e openpkg" again, too.

Very good to know. For those who are interested in, I have examined
these 6 connection points as follows:

(1) a presence file pointing to the top-level directory of the OpenPKG
instance:
$ cat /etc/openpkg
/opt/openpkg

(2) the top-level directory of the OpenPKG instance, as indicated in (1)

(3) 3 new users:
# grep openpkg < /etc/passwd
openpkg:x:1000:1000:/opt/openpkg OpenPKG 
(management):/opt/openpkg:/opt/openpkg/lib/openpkg/bash
openpkg-r:x:1001:1001:/opt/openpkg OpenPKG 
(restricted):/opt/openpkg:/opt/openpkg/lib/openpkg/bash
openpkg-n:x:1002:1002:/opt/openpkg OpenPKG 
(non-privileged):/opt/openpkg:/opt/openpkg/lib/openpkg/bash

Question: Why do the 3 new users need openpkg's bash as their login
shell?

(4) 3 new groups:
 # grep openpkg < /etc/group
openpkg:*:1000:openpkg
openpkg-r:*:1001:openpkg-r
openpkg-n:*:1002:openpkg-n

(5) 5 entries to the root cron table:
# grep '<OpenPKG' -A7 < /etc/crontab
# <OpenPKG prefix=/opt/openpkg pkg=openpkg>
# chronological tasks of /opt/openpkg OpenPKG hierarchy
0    0  1  *  *  root  [ -f /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all 
monthly
0    0  *  *  0  root  [ -f /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all 
weekly
0    0  *  *  *  root  [ -f /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all 
daily
0    *  *  *  *  root  [ -f /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all 
hourly
*/15 *  *  *  *  root  [ -f /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all 
quarterly
# </OpenPKG>

(6) a run-command script
???

Thank you for adding these facts and the possibility of "openpkg rpm
-e `openpkg rpm -qa`" to the Installation Tutorial at
http://www.openpkg.org/documentation/tutorial/

Best wishes,
rob.



______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to