LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-17-2004, 12:48 AM   #1
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Rep: Reputation: 30
checkinstall PATH


I have installed checkinstall using the rpm -ivh command
now everytime i need to use this program i have to go under the directory where it was installed. /usr/local/checkinstall
is there anyway to ad that to my PATH so i could just execute checkinstall from any directory without having to right the whole path

thanks in advance
 
Old 09-17-2004, 01:12 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sure.

All you need to do is edit root's ~/.bashrc (or ~/.bash_profile,
whichever meets the needs) and do
export PATH=$PATH:/usr/local/checkinstall


Cheers,
Tink
 
Old 09-17-2004, 06:06 AM   #3
suowei1979
LQ Newbie
 
Registered: Sep 2004
Location: BeiJing,China
Distribution: Red Hat
Posts: 25

Rep: Reputation: 16
or /etc/profile
 
Old 09-18-2004, 10:32 PM   #4
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Original Poster
Rep: Reputation: 30
checkinstall PATH

but when i intall the checkinstall using "rpm -ivh checkinstall xx" it intall the package under /usr/local/sbin/checkinstall which is not in the PATH... my question is shouldn't rpm intall all software under /usr/local which by default is in the PATH? and is it safe to export /usr/local/sbin to the PATH ? can i just cp /usr/local/sbin/checkinstall to /usr/local?

thank you for you time and help
 
Old 09-19-2004, 04:52 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
No, it shouldn't if the application is allowed to
perform system critical tasks - software installation
is one of them, checkinstall should only be run
as root, and thus rightfully lives in ./sbin which
is in roots path but not in normal users' ...


Cheers,
Tink
 
  


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
checkinstall error : *** The "rpm" program is not in your PATH! logicalfuzz Linux - Software 2 09-11-2005 07:40 AM
Checkinstall in 5.1.1 Kroenecker Linux From Scratch 5 07-13-2004 12:37 PM
checkinstall... marsques Linux - Software 3 05-25-2004 01:56 PM
Using 'checkinstall' gonzalo76 Slackware 20 05-20-2004 07:09 PM
Checkinstall ... durden2.0 Linux - Software 1 07-02-2003 03:01 PM


All times are GMT -5. The time now is 06:37 AM.

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