LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2007, 12:13 AM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
regarding rpm installation


hi all
i created a rpm for my application.
i am asking about, is there any way to write in spec file.....
at the time of installation give the permission to a file placed in /usr/lib/

how to give the permissions for that file in /usr/lib while installing the rpm.

for this, how to write in spec file.
please help me

thank you in advance
 
Old 09-05-2007, 02:42 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe you are looking for the %attr directive:
Code:
%attr(<mode>, <user>, <group>) file
Refer to the official docs here.
 
Old 09-05-2007, 11:39 PM   #3
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
Maybe you are looking for the %attr directive:
Code:
%attr(<mode>, <user>, <group>) file
Refer to the official docs here.
hi
how to excute an exe while installing the rpm?
how to write it in spec file.
for example like :
%files
/usr/bin/munna
exec munna


is any way

please help me

thank you in advance
 
Old 09-19-2007, 03:07 AM   #4
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
Maybe you are looking for the %attr directive:
Code:
%attr(<mode>, <user>, <group>) file
Refer to the official docs here.
hi
at present am doing suse10.3 rpm..
i given
%attr(<mode>, <user>, <group>) file

coz of this line it copying the total file
which am giving permission.. so that rpm size increasing..

i tried for this
here i would like to give the permission to that folder..
while installing the rpm
Code:
%file
%attr(0777, root, root) /usr/lib/xulrunner*/plugins/
what is the wrong with this..

please help me

thank you in advance
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 12:42 AM
RPM Installation hkillen Linux - Newbie 5 09-22-2006 03:36 PM
rpm installation paulr1984 Linux - Newbie 1 04-28-2005 06:25 AM
installation of rpm shashank Linux - Software 1 04-14-2005 09:15 PM
RPM installation RedDevils Fedora 8 12-24-2003 09:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration