niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » AIX
installp vs. rpm?
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
Author Message
Uli Link
*nix forums Guru Wannabe


Joined: 02 Mar 2005
Posts: 100

PostPosted: Sat Feb 05, 2005 12:26 am    Post subject: Re: installp vs. rpm? Reply with quote

Mike wrote:
Quote:
That's what I'm working on now. As I mentioned I wanted to
keep the two systems logically separate,..´

This can be managed by a separate tree under /opt e.g.

Quote:
I have used the mklpp in the past, but it seems like I
always had to create the installation area (where it creates
the bff from) as owned by root. Was I missing something
or is that the way it is? I've been trying to get the time
to test creating the package then having a post install
script that changes the ownership to root.

Not really.
You can specify owner, group and mode together with chksum and some
other items independantly for every file in you installp through the
*.inventory control file(s). Installp format can handle separate root,
usr and share parts.

Any package creation script can only do a rough guess from the staging
area. And usually a package can only be tested with root privilege,
regardless of the format.
My favourite is the SVR4 package format. But I would never even think of
mixing installp, rpm and pkg on one platform, and haven't met a pkg
for AIX yet.

--
Uli

These opinions are mine. All found typos are yours.
Back to top
Mike
*nix forums Guru Wannabe


Joined: 09 Apr 2005
Posts: 133

PostPosted: Fri Feb 04, 2005 9:58 pm    Post subject: Re: installp vs. rpm? Reply with quote

In article <4203f616$0$18564$9b4e6d93@newsread4.arcor-online.net>, Uli Link wrote:
Quote:


Possibly dpkg is superior, I've not used it.
Since there are two package managers by default in AIX,
it made sense in my environment to use installp for IBM
provided packages and rpm for everything else.

Why not building installp's and stay consistent on AIX?
It's a nice format and well documented.


That's what I'm working on now. As I mentioned I wanted to
keep the two systems logically separate, and then realized
there was no 'reject' in rpm and I use that a lot with
installp (depending on the situation).

I have used the mklpp in the past, but it seems like I
always had to create the installation area (where it creates
the bff from) as owned by root. Was I missing something
or is that the way it is? I've been trying to get the time
to test creating the package then having a post install
script that changes the ownership to root.

Mike
Back to top
Uli Link
*nix forums Guru Wannabe


Joined: 02 Mar 2005
Posts: 100

PostPosted: Fri Feb 04, 2005 9:24 pm    Post subject: Re: installp vs. rpm? Reply with quote

Quote:

Possibly dpkg is superior, I've not used it.
Since there are two package managers by default in AIX,
it made sense in my environment to use installp for IBM
provided packages and rpm for everything else.

Why not building installp's and stay consistent on AIX?
It's a nice format and well documented.

--
Uli

These opinions are mine. All found typos are yours.
Back to top
Mike
*nix forums Guru Wannabe


Joined: 09 Apr 2005
Posts: 133

PostPosted: Fri Feb 04, 2005 8:57 pm    Post subject: Re: installp vs. rpm? Reply with quote

In article <1107551441.044017.208540@l41g2000cwc.googlegroups.com>, florian.heigl@gmx.de wrote:
Quote:

Mike wrote:
I have decided to use RPM for everything home-grown and
use installp for OS and vendor provided things. Then I
think earlier this week about an issue one of the development
groups had earlier this week where they needed to back
something out of production.

I know installp can backout (reject) filesets that have
not yet been committed, but how to handle this with rpm?

rpm is just a package format, and IMHO not one of the better
ones. I've used it quite some time and i've yet to see even
a mechanism like commiting software with rpm.

please use things for what they were intended for, not for
everything. rpm is great for quickly installing a singly
binary, especially if You don't know every geninstall
parameter by heart (or almost none like me), but it's
not the way to distribute real software.

Guess why linux people consider dpkg as superior?


Possibly dpkg is superior, I've not used it.
Since there are two package managers by default in AIX,
it made sense in my environment to use installp for IBM
provided packages and rpm for everything else.
Back to top
florian.heigl@gmx.de
*nix forums beginner


Joined: 04 Feb 2005
Posts: 1

PostPosted: Fri Feb 04, 2005 8:10 pm    Post subject: Re: installp vs. rpm? Reply with quote

Mike wrote:
Quote:
I have decided to use RPM for everything home-grown and
use installp for OS and vendor provided things. Then I
think earlier this week about an issue one of the development
groups had earlier this week where they needed to back
something out of production.

I know installp can backout (reject) filesets that have
not yet been committed, but how to handle this with rpm?

rpm is just a package format, and IMHO not one of the better
ones. I've used it quite some time and i've yet to see even
a mechanism like commiting software with rpm.

please use things for what they were intended for, not for
everything. rpm is great for quickly installing a singly
binary, especially if You don't know every geninstall
parameter by heart (or almost none like me), but it's
not the way to distribute real software.

Guess why linux people consider dpkg as superior?
Back to top
TomK
*nix forums beginner


Joined: 09 Mar 2005
Posts: 34

PostPosted: Fri Feb 04, 2005 7:39 am    Post subject: Re: installp vs. rpm? Reply with quote

On Thu, 03 Feb 2005 16:12:06 GMT, Mike <mikee@mikee.ath.cx> wrote:

Quote:
In article <1107442043.892156.248120@c13g2000cwb.googlegroups.com>, Greg Beeker wrote:
man rpm
rpm [--uninstall|-e] [uninstalloptions] [package]+


Thank you for mentioning the uninstall. I thought the uninstall
would totally remove the application from the system. When I use
'installp -a' I can subsequently use 'installp -r' to return
to the previous fileset, thereby rejecting the fileset just
installed as long as the fileset has not been commited.

It is the reject ability I am trying to confirm that rpm
does or does not have. So far it appears that rpm is not
able to reject packages; only uninstall them.

Mike
In order to reject, rpm would need the option to not commit. If you look

around, you'll find that installp saves the previous version in (fudging
here -- doing this from home) the /usr/lpp/<package> directory; when you
commit, the subdirectory is deleted.

Rpm doesn't have the option to save the old version built in; but you
could always do a pre- script to save previous if found, and (possibly) a
post- script to re-install the saved version on an uninstall.

Tom
Back to top
Mike
*nix forums Guru Wannabe


Joined: 09 Apr 2005
Posts: 133

PostPosted: Thu Feb 03, 2005 3:12 pm    Post subject: Re: installp vs. rpm? Reply with quote

In article <1107442043.892156.248120@c13g2000cwb.googlegroups.com>, Greg Beeker wrote:
Quote:
man rpm
rpm [--uninstall|-e] [uninstalloptions] [package]+


Thank you for mentioning the uninstall. I thought the uninstall
would totally remove the application from the system. When I use
'installp -a' I can subsequently use 'installp -r' to return
to the previous fileset, thereby rejecting the fileset just
installed as long as the fileset has not been commited.

It is the reject ability I am trying to confirm that rpm
does or does not have. So far it appears that rpm is not
able to reject packages; only uninstall them.

Mike
Back to top
Greg Beeker
*nix forums addict


Joined: 24 Feb 2005
Posts: 94

PostPosted: Thu Feb 03, 2005 1:47 pm    Post subject: Re: installp vs. rpm? Reply with quote

man rpm
rpm [--uninstall|-e] [uninstalloptions] [package]+
Back to top
Michael Prix
*nix forums beginner


Joined: 20 Feb 2005
Posts: 18

PostPosted: Wed Feb 02, 2005 7:06 pm    Post subject: Re: installp vs. rpm? Reply with quote

Mike wrote:

Quote:
I know installp can backout (reject) filesets that have
not yet been committed, but how to handle this with rpm?

Mike

root@aix02:/# rpm
RPM version 3.0.5
Copyright (C) 1998 - Red Hat Software
This may be freely redistributed under the terms of the GNU GPL

usage: ...

HTH, HAND

--
Michael Prix
The social dynamics of the net are a direct consequence of the fact that
nobody has yet developed a Remote Strangulation Protocol. -- Larry
Wall
Back to top
Mike
*nix forums Guru Wannabe


Joined: 09 Apr 2005
Posts: 133

PostPosted: Wed Feb 02, 2005 5:51 pm    Post subject: installp vs. rpm? Reply with quote

I have decided to use RPM for everything home-grown and
use installp for OS and vendor provided things. Then I
think earlier this week about an issue one of the development
groups had earlier this week where they needed to back
something out of production.

I know installp can backout (reject) filesets that have
not yet been committed, but how to handle this with rpm?

Mike
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 12:02 am | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Software distribution - RPM or installP RMandair@gmail.com AIX 4 Mon May 29, 2006 6:10 pm
No new posts mkinstallp/installp pre/post run scripts in the wrong order linux@unliketea.com AIX 4 Mon Feb 13, 2006 10:41 pm
No new posts installp: root part failed Bernhard Küpper AIX 0 Mon Nov 21, 2005 4:10 pm
No new posts installp: Is there any way to install filesets painlessly? aleatory AIX 4 Sun Apr 10, 2005 12:42 pm

Discount Magazine Subscriptions | Debt Consolidation | Mortgage | Credit Cards | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3411s ][ Queries: 19 (0.2442s) ][ GZIP on - Debug on ]