LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-19-2005, 10:13 PM   #1
manas_shukla
Member
 
Registered: Jan 2005
Location: india
Distribution: redhat fedora core 3 right now
Posts: 30

Rep: Reputation: 15
learning command line.rpms?what?


>now that i have fedora installed, i need to learn how to use the command line, is their any >web page for newbies that teaches how to use CL?
>what are rpms?
>how do download an rpm so that i can use mp3 files?
>is downloading programs different in linux?in windows you get a setup launcher, is it the same in linux? or do I have to compile scripts, etc.?
>what is: ( for example)
apt-get upgrade
apt-get install xmms-mp3
( i get an error when i do this in command )
 
Old 01-19-2005, 10:27 PM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
check out:

http://www.icon.co.za/~psheer/book/

full of great stuff, especially for fedora...
 
Old 01-19-2005, 10:59 PM   #3
andy1.52
Member
 
Registered: Jan 2005
Location: Utah
Distribution: Mandrake Official 10.1
Posts: 30

Rep: Reputation: 15
Question Similar prob but with vsftpd

I have installed vsftpd right from my mandrake disk and when I go into the system processes manager it says the service is ready to start upon request.
My problem is that I don't know the CL to start the program let alone any CL for linux. I'm stuck using the graphical interface which is a help and a hinderance at the same time I'd like to know how to use bolth.
 
Old 01-19-2005, 10:59 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Quote:
apt-get upgrade
apt-get install xmms-mp3
( i get an error when i do this in command )
What error do you get ?

RPM stands for RedHat Package Manager, and it is a way that programs may be distributed in binary form. There is no "Setup Wizzard" as such. You simply run the command "rpm -ivh whateverTheNameIs.rpm" to install the program.

To listen to mp3s, you need an mp3 player, such as XMMS

I hope this helps
--Ian
 
Old 01-19-2005, 11:03 PM   #5
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Re: Similar prob but with vsftpd

Quote:
Originally posted by andy1.52
I have installed vsftpd right from my mandrake disk and when I go into the system processes manager it says the service is ready to start upon request.
My problem is that I don't know the CL to start the program let alone any CL for linux. I'm stuck using the graphical interface which is a help and a hinderance at the same time I'd like to know how to use bolth.
Try, as root:
Code:
service vsftpd start
This will start the vsftp daemon.

I would suggest that the GUI may be easier for a distro like Mandrake, which is much more set up for GUI configuration using the Mandrake Control Centre.

I hope this helps
--Ian
 
Old 01-19-2005, 11:08 PM   #6
manas_shukla
Member
 
Registered: Jan 2005
Location: india
Distribution: redhat fedora core 3 right now
Posts: 30

Original Poster
Rep: Reputation: 15
help!

i still need help!
can't find what i need in that manual ( it'll take time, in the meanwhile...)
i've download and rpm (xmms) that sits in my root director
to install it i try in the command line:
rpm -i xmms-1.2.10-1.src.rpm
but it gives me the following error:
error: cannot create %sourcedir /usr/src/redhat/SOURCES
HELP!
 
Old 01-19-2005, 11:10 PM   #7
andy1.52
Member
 
Registered: Jan 2005
Location: Utah
Distribution: Mandrake Official 10.1
Posts: 30

Rep: Reputation: 15
should I log into the root user or should I just login under my usr name and then su over too root. I don't think it will make a difference. And I've already tried the given command line but I don't think I've tried it in root.
 
Old 01-19-2005, 11:37 PM   #8
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Re: help!

Quote:
Originally posted by manas_shukla
i still need help!
can't find what i need in that manual ( it'll take time, in the meanwhile...)
i've download and rpm (xmms) that sits in my root director
to install it i try in the command line:
rpm -i xmms-1.2.10-1.src.rpm
but it gives me the following error:
error: cannot create %sourcedir /usr/src/redhat/SOURCES
HELP!
You have downloaded a Source RPM. You need to use the normal rpms (These don't have .src in their names).

On a side note: What do you mean by your root directory ? Is it /root. I ask this because you need to have a normal user, and only use root for admin tasks (like installing software).

I hope this helps
--Ian
 
Old 01-20-2005, 12:09 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'd recommend logging in as root and using the yum tool, which comes with Fedora.
This will take care of dependencies automatically, as opposed to raw rpm loading which will only load the specific rpm you name.
Try
yum install xmms
(i think that's correct)
 
Old 01-20-2005, 02:15 AM   #10
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
You can also use yum if you just su to root. It doesn't make any real difference for these things

--Ian
 
Old 01-20-2005, 02:54 AM   #11
manas_shukla
Member
 
Registered: Jan 2005
Location: india
Distribution: redhat fedora core 3 right now
Posts: 30

Original Poster
Rep: Reputation: 15
can someone tell me a little more ( a few sentences would be more than enough) about how to use apt-get and yum commands in the command line, i.e., what to type and the things they do?
thanx
 
Old 01-20-2005, 03:13 AM   #12
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
"Yum" is a package management tool. you can use it to install, upgrade, and uninstall packages. It also resolves dependencies.

say you want to install a package that is called "abc".

Code:
yum install abc
This would search the fedora "repositories" and if found, it would download and install "abc". Say installing "abc" required that you also had "xyz" installed. It would know this, and also install "xyz" for you as well.

You can also add other repositories. I would reccomend adding freshrpms.net as it has a wealth of packages availible that fedora does not.

I don't know if apt is included with Fedora, apt was originally for Debian, "Advanced Packaging Tool" but it is now availible for fedora.
 
Old 01-20-2005, 03:34 AM   #13
manas_shukla
Member
 
Registered: Jan 2005
Location: india
Distribution: redhat fedora core 3 right now
Posts: 30

Original Poster
Rep: Reputation: 15
can you please tell me what i did wrong? and how do i add fresh repositories ( im guessing thats something like a database )
Code:
[root@localhost xmms-1.2.10]# yum install xmms

You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
    rpm --import public.gpg.key
For more information contact your distribution or package provider.
[root@localhost xmms-1.2.10]# rpm --import public.gpg.key
error: public.gpg.key: import read failed.
[root@localhost xmms-1.2.10]#
 
Old 01-20-2005, 05:13 AM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try this,
#rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
and
#rpm --import /usr/share/rhn/RPM-GPG-KEY

For third party repositories you have to download the gpg key from that site and then use rpm to import it.
 
  


Reply



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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Learning Linux command kizersouzay Linux - Newbie 4 07-30-2005 04:38 AM
Learning the command line Fritz_Monroe Linux - Newbie 11 11-25-2004 09:53 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 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
Open Source Consulting | Domain Registration