LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2013, 06:41 AM   #31
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51

How shall I add an entry into .bashrc through RPM SPEC file?
What I mean is whenever I run rpm -ivh <package.rpm> it should install the RPM plus should add an entry into /etc/bashrc or /etc/profile so that I dont need to run export command everytime.

I tried this:
Code:
rpm -ivh --force custom-1.0-binary.x86_64.rpm
Preparing...                ########################################### [100%]
   1:custom                 ########################################### [100%]
cat: export LD_LIBRARY_PATH=/opt/dell/srvadmin/lib64/: No such file or directory
under %post section added directly, but it dint work.

Last edited by your_shadow03; 06-17-2013 at 07:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
configure path for dependent rpm packages for building source rpm package embeddedlinuxforall Linux - Newbie 1 03-01-2013 12:39 PM
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 02:10 AM
Building a RPM investmentbnker75 Linux - Newbie 3 03-22-2009 07:58 PM
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 11:36 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM


All times are GMT -5. The time now is 02:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration