LinuxQuestions.org
Register a domain and help support LQ
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 03-01-2004, 12:03 PM   #1
newbielinux
LQ Newbie
 
Registered: Feb 2004
Posts: 12

Rep: Reputation: 0
macros file


Hi All

I am trying to run:

rpm -ivh dbpath ~/RPMdb src-rpmfile.rpm

I am not root so I created ~/.rpmmacros file after copying /usr/lib/rpm/macros
and changed the top dir defination to:

%_topdir ~/rpm/redhat

and changed dbpath to

%_dbpath ~/RPMdb

My RPMdb is populated with rpm files from /var/lib/rpm

........I have created directory structure as
mkdir -p ~/rpm/redhat/SOURCES
mkdir -p ~/rpm/redhat/BUILD
mkdir -p ~/rpm/redhat/RPMS
mkdir -p ~/rpm/redhat/SRPMS
mkdir -p ~/rpm/redhat/SPECS

and when I run rpm -ivh dbpath ~/RPMdb src-rpmfile.rpm
I am getting error:
error: cannot create %sourcedir /~rpm/redhat/SOURCES.....

Can Anyone help here....????????whats wrong do I need to change any else besides
macros file??????????????

Thanks a ton!!!!
 
Old 03-01-2004, 12:51 PM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

Rep: Reputation: 198Reputation: 198
Why are you installing rpm's not as the root user?
This is one of the jobs that should be done as root.




Anyway....
Looks like you've got a typo somewhere at first glance


/~rpm/redhat/SOURCES

surely should be ~/rpm/redhat not /~rpm/redhat ?


~rpm means the $HOME of user rpm, (e.g: my home is ~billy)

it's diff from ~/rpm which is directory 'rpm' in *YOUR* $HOME

anyway, unless you are doing something clever which i haven't
grasped, or don't have root access, install rpm's as root.
Otherwise you are going to need changing lots of permissions
to allow you to do this, which sort of defeats the object of
having permissions anyway.



billy
 
  


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
Macros In C drumstick Programming 8 11-21-2005 05:37 PM
Macros Twi7ch Linux - General 2 08-27-2005 10:37 PM
Question about macros Nerox Programming 4 04-03-2005 04:34 AM
keystroke macros squip Programming 1 10-09-2003 01:46 PM
FAQ about macros ayman Linux - Software 2 06-11-2003 09:53 AM


All times are GMT -5. The time now is 06:54 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