[olug] rpm Howto
nate
tbrownarcher at cox.net
Fri Sep 12 06:53:33 UTC 2003
This is a sequence of commands and results after running the location sequence
you showed me Kent!
[root at localhost home]# updatedb
[root at localhost home]# $ locate BUILD
bash: $: command not found
[root at localhost home]# locate BUILD
/root/rpm/BUILD
/usr/share/doc/freetype2-devel-2.1.3/BUILD
/usr/X11R6/lib/X11/doc/BUILD
/usr/src/RPM/BUILD
[root at localhost home]#
I ran the- mkdir-p ~/rpm/BUILD- which should have put the directory into
/home. Why did it put it in the /usr/src/RPM/BUILD directory?????
Also you prefaced one command with # and another with $ Is this a different
shell that I have to be in ????? I did everything with the #.
thanks,
Nate
On Thursday 11 September 2003 09:58 pm, Kenton Brede wrote:
> On Thu, Sep 11, 2003 at 07:16:36PM -0500, nate wrote:
> > I am looking at a HOWTO
> > [http://www.linux-mandrake.com/en/howtos/mdk-rpm/preliminary.html]
> > which is preliminary tasks. I have tried to follow the directory
> > building task mentioned in the [ 3.1. Create required folders. ]
> > instruction. When I type ~/rpm/BUILD I get the prompt again so it must
> > have made a folder/directory somewhere but I cannot find it looking in
> > the home directory which I'm in when I execute the command? What can you
> > tell me about this and also what is the ~ before the /rpm/BUILD .
>
> The "~" (tilde) denotes your home directory. If you have a user on your
> system called "nate" with a home directory /home/nate, and you were logged
> in as "nate" then -
>
> $ mkdir -p ~/rpm/BUILD
>
> should place the directory /rpm/BUILD in /home/nate so you would end up
> with /home/nate/rpm/BUILD
>
> A couple ways of looking for files/directories:
>
> First, to look for a directory or file you have just created and can't
> find, run as root -
> # updatedb
>
> then -
> $ locate BUILD
>
> Alternatively you could use "find." For example -
> $ find /home -type d -name BUILD
> would search /home, finding any directory named "BUILD"
>
> Check the man pages for more info on how to use these commands.
> hth,
> kent
More information about the OLUG
mailing list