02-20-2013
<<< Question related to making of RPM package >>>
Hi all,
Pls provide your suggestions and advice for the below queries. I have a files like below sample
HTML Code:
$ ls -l /u01/app
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test1
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
- I want to make it as a rpm package for all the files under this folder (/u01/app)
- Make it as a relocatable package (it can be install in different directory)
- Sometimes appusr (user) group can be different in some of the servers (not appdba). So that time it will get the appusr group and change the permission accordingly
Pls share the spec file and provide your suggestions. Thanks !
Regards
Kannan
10 More Discussions You Might Find Interesting
1. Linux
have following package installed
rpm -qa |grep ADMIN
It will give the following package installed:
ADMIN-4.0.0.1
Now I will upgrade the ADMIN package using the following command.
rpm --upgrade ADMIN-4.1.0.1
It will upgrade the ADMIN packagge to ADMIN-4.1.0.1
Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies
2. Ubuntu
Hi All,
I just recently installed UBUNTU 2.6.24-16 and i installed my phone software which is a RPM package (it's a similiar package with MSN).
The software called MXIE.
I managed to install it successfully but i can't run the software.
When i try to run it, i received... (8 Replies)
Discussion started by: c00kie88
8 Replies
3. Linux
Hi,
I have built one RPM last year. now we have another version of that RPM. in previous release we had few extra files then now. so when user upgrade it those files get deleted by RPM package. We want to retain those files.
now for workaround i thought of backing up those file during... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies
4. UNIX for Advanced & Expert Users
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies
5. UNIX for Dummies Questions & Answers
Hello,
i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm"
in /usr/local/ directory.
I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't.
I did:
1st try: Didn't work
sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies
6. Emergency UNIX and Linux Support
Hello,
i have installed a package by using the command
sudo rpm -i filepackage.rpm
package filepackage is already installed
when i try to remove it, i get an error saying "is not installed":
sudo rpm -e filepackage.rpm
error: package filepackage is not installed
How can... (4 Replies)
Discussion started by: g_p
4 Replies
7. Red Hat
Hi Everybody,
I would like to know how to build an RPM package. Could you please let me know how to do it with the procedure.
Regards,
Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies
8. Red Hat
Hello
I have Storage foundation 6.0 version to install in redhat 6.0, so while trying to install one of the application it say to install some dependencies packages so when i try to install the dependencies again it ask for the dependencies so its a lengthy process i say. so now can i get the... (1 Reply)
Discussion started by: cyrus.ranjith
1 Replies
9. UNIX for Advanced & Expert Users
Is there a way to create a protected RPM package without giving up your source code? (2 Replies)
Discussion started by: cokedude
2 Replies
10. AIX
Hi Guys
I got this error when I try to install perl-5.24.0-1.aix6.1.ppc.rpm package
rpm -ivh perl-5.24.0-1.aix6.1.ppc.rpm
error: perl-5.24.0-1.aix6.1.ppc.rpm does not appear to be a RPM package (4 Replies)
Discussion started by: khaled_ly84
4 Replies
LEARN ABOUT SUNOS
install
install(1B) SunOS/BSD Compatibility Package Commands install(1B)
NAME
install - install files
SYNOPSIS
/usr/ucb/install [-cs] [-g group] [-m mode] [-o owner] filename1 filename2
/usr/ucb/install [-cs] [-g group] [-m mode] [-o owner] filename... directory
/usr/ucb/install -d [-g group] [-m mode] [-o owner] directory
DESCRIPTION
install is used within makefiles to copy new versions of files into a destination directory and to create the destination directory itself.
The first two forms are similar to the cp(1) command with the addition that executable files can be stripped during the copy and the owner,
group, and mode of the installed file(s) can be given.
The third form can be used to create a destination directory with the required owner, group and permissions.
Note: install uses no special privileges to copy files from one place to another. The implications of this are:
o You must have permission to read the files to be installed.
o You must have permission to copy into the destination file or directory.
o You must have permission to change the modes on the final copy of the file if you want to use the -m option to change modes.
o You must be superuser if you want to specify the ownership of the installed file with -o. If you are not the super-user, or if -o is
not in effect, the installed file will be owned by you, regardless of who owns the original.
OPTIONS
-c Copy files. In fact install always copies files, but the -c option is retained for backwards compatibility with old shell
scripts that might otherwise break.
-d Create a directory. Missing parent directories are created as required as in mkdir -p. If the directory already exists, the
owner, group and mode will be set to the values given on the command line.
-s Strip executable files as they are copied.
-g group Set the group ownership of the installed file or directory. (staff by default.)
-m mode Set the mode for the installed file or directory. (0755 by default.)
-o owner If run as root, set the ownership of the installed file to the user-ID of owner.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
chgrp(1), chmod(1), chown(1), cp(1), mkdir(1), strip(1), install(1M), attributes(5)
SunOS 5.10 14 Sep 1992 install(1B)