Package deployments

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Package deployments
# 1  
Old 02-23-2010
Package deployments

I have a task to formalize process of our package deployments. We need to create a sprm containing libcurl and a corresponding rpm of srpm. I found that this site has required downloadable packages - Index of /download and should be build for 32 bit architecture applications. Since I am new to this kind of approach I am not sure what next I have to do. Any help would be highly appreciated.
# 2  
Old 02-25-2010
tell us your current env, such as the OS (Linux?) give us the output by below command.

Code:
uname -a

# 3  
Old 02-26-2010
First, if possible use a source RPM (srpm) provided by your distribution, if possible. You can even use that if you need a newer version not yet available through your repositories.

To create a RPM from a SRPM, use the rpmbuild tool. What this, basically, does is automate the whole configure-make-(make test)-make install sequence, and packs it into an archive, plus some installation/configuration scripts.

Best would be to install a SRPM (rpm -i file.rpm), and check the packaged specification file in /usr/src/packages/SPECS/.
# 4  
Old 02-26-2010
Yes I am trying to install on Linux RHEL 5.4 OS.

When I issue the command : rpm -i file.rpm I get the following error: error: cannot write to %sourcedir /usr/src/redhat/SOURCES. When I checked the dir /usr/src/redhat/SOURCES - I found that it is owned by ROOT. So how can I install using my id
# 5  
Old 02-26-2010
If you can, change the permissions of the directories below /usr/src/redhat using chmod a+t. That will allow any user to create a file there.
# 6  
Old 02-26-2010
Code:
$ pwd
/usr/src/redhat

$ ls -ld .
drwxr-xr-x 7 root root 4096 Jan 27 11:36 .
$

$ chmod -R a+t .
chmod: changing permissions of `.': Operation not permitted
chmod: changing permissions of `./SRPMS': Operation not permitted
chmod: changing permissions of `./SPECS': Operation not permitted
chmod: changing permissions of `./RPMS': Operation not permitted
chmod: changing permissions of `./RPMS/noarch': Operation not permitted
chmod: changing permissions of `./RPMS/x86_64': Operation not permitted
chmod: changing permissions of `./BUILD': Operation not permitted
chmod: changing permissions of `./SOURCES': Operation not permitted
$

It does not allows me todo so.

Last edited by pludi; 02-26-2010 at 06:32 AM.. Reason: code tags, please...
# 7  
Old 02-26-2010
You do know that only the owner of a directory may change the permissions? So you'd have to do it as root, or ask your admin to do so.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Package

Hi, What is installation package and how to create it? When we run: in AIX: installp package1 or in Linux rpm -ivh mypackage What is package1 or mypackage in the abov examples and how to create them and deploy them? I hope my question is clear enough. Thank you (2 Replies)
Discussion started by: big123456
2 Replies

2. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

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

3. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

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

4. Linux

How install a new package without remove old package?

Dear all, I would like to install a new version of package without remove old version on Centos and vice versa. Please give me advice! thanks much, (2 Replies)
Discussion started by: all4cfa
2 Replies

5. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

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

6. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

7. Shell Programming and Scripting

Need Help to count the deployments

Hi, Need help for a script that count no of deployments from the below Sample Input file. Below is my sample input file. Not sure whether it works or not. Note: (We can use a seperator if needed) My output should come like for each Store: Output should look like: Store_MS1: 4 Deployments... (6 Replies)
Discussion started by: amiri2000
6 Replies

8. Red Hat

vncviewer package

Hello, I am working on Remote Desktop invocation in FEDORA 8. I am having the vncserver package. But I couldnt find the vncviewer package to view it. I couldnt locate the package in my search. Can you please give me the link where I can download the RPM file of "vncviewer" to install in my... (6 Replies)
Discussion started by: nsharath
6 Replies

9. Linux

how to restore original package after uninstalling the upgraded package using rpm

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
Login or Register to Ask a Question