LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   learning command line.rpms?what? (https://www.linuxquestions.org/questions/linux-newbie-8/learning-command-line-rpms-what-279972/)

manas_shukla 01-19-2005 11:13 PM

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 )

detpenguin 01-19-2005 11:27 PM

check out:

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

full of great stuff, especially for fedora...

andy1.52 01-19-2005 11:59 PM

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.:Pengy:

IBall 01-19-2005 11:59 PM

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

IBall 01-20-2005 12:03 AM

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.:Pengy:

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

manas_shukla 01-20-2005 12:08 AM

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!

andy1.52 01-20-2005 12:10 AM

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.

IBall 01-20-2005 12:37 AM

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

chrism01 01-20-2005 01:09 AM

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)

IBall 01-20-2005 03:15 AM

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

--Ian

manas_shukla 01-20-2005 03:54 AM

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

claudius753 01-20-2005 04:13 AM

"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.

manas_shukla 01-20-2005 04:34 AM

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]#


reddazz 01-20-2005 06:13 AM

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.


All times are GMT -5. The time now is 11:25 AM.