Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247

    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
    "Relationships are built on trust and communication"

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You can use the %post option in your spec file to stipulate which commands to run when you install the rpm. More info is available in the rpm guide.

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by daark.child View Post
    You can use the %post option in your spec file to stipulate which commands to run when you install the rpm. More info is available in the rpm guide.

    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
    "Relationships are built on trust and communication"

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    I've already mentioned that you can use the %post section to run commands and scripts after an rpm is installed.

  5. #5
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by daark.child View Post
    I've already mentioned that you can use the %post section to run commands and scripts after an rpm is installed.
    Code:
    %files
    /root/one/munna
    %post
    /root/one/munna
    yes i used this but facing a problem
    not exiting after opening the window(am speaking about in terminal)
    Code:
    [root@localhost SPECS]# rpm -i '/usr/src/redhat/RPMS/i386/munna-Beta-FC7.i386.rpm'
    what i have to do to exit the terminal...


    thank you in advance
    "Relationships are built on trust and communication"

  6. #6
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    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
    "Relationships are built on trust and communication"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...