LinuxQuestions.org
Visit Jeremy's Blog.
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 04-03-2012, 08:12 AM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Question How to install softwares on linux(VM)?


HI All,
I have installed a virtualbox on an windows Xp machine.In the virtual machine I have installed fedora as my guest OS.Now what I want is to install softwares in this guess OS.Can someone tell me or point to a step by step guide on how to go about doing this.Mainly what I need is to run my gcc compiler on this + some other software isntallations.Please can someone help?

Thanks,
Ajit
 
Old 04-03-2012, 08:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
116 posts and you've never installed an RPM?

for gcc, you're best off running
Code:
yum groupinstall "Developement Tools"
Note that your system being a VM is utterly irrelevant here.
 
Old 04-03-2012, 08:32 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
You would install any software the same way as you would on a physical installation. You could either use package manager to install the softwares or rpm command. Both are valid and correct.
To install packages using yum, you would typically need internet connection to download and install the software. Except in the case where you have the rpm file and want to use yum to install the locally available rpm file.

Edit: Chris beat me here with speed on keyboard.
 
Old 04-04-2012, 01:34 AM   #4
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Smile How to transfer the rpms on the guest machine

Quote:
Originally Posted by linuxlover.chaitanya View Post
You would install any software the same way as you would on a physical installation. You could either use package manager to install the softwares or rpm command. Both are valid and correct.
To install packages using yum, you would typically need internet connection to download and install the software. Except in the case where you have the rpm file and want to use yum to install the locally available rpm file.

Edit: Chris beat me here with speed on keyboard.
Chaitanaya and Chris,
I am not exactly sure how to I transfer the RPMs to the guest os.I dont know how to configure the interfaces for the guest OS.How to assign an IP address to the interface so that it starts talking to internet and my yum starts working.Can someone help me with this regards.

Thanks
Ajit
 
Old 04-04-2012, 02:07 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
If you have installed CentOS in GUI mode and you have some DE installed, you should be able to use system-config-network command to configure your network settings. Please check the documentation for your virtualisation package on how to add interface to the guest OS.
 
Old 04-23-2012, 09:45 AM   #6
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Question

Quote:
Originally Posted by acid_kewpie View Post
116 posts and you've never installed an RPM?

for gcc, you're best off running
Code:
yum groupinstall "Developement Tools"
Note that your system being a VM is utterly irrelevant here.
I tried the above command but I am getting the following error.

[root@localhost tmp]# yum groupinstall "Developement Tools"
Loaded plugins: langpacks, presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again.

So how do I resolve this issue.

Ajit
 
Old 04-23-2012, 09:49 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
fix the "fedora" repository as presumably defined in /etc/yum.repos.d/

I don't *think* that's a standard name at all, did you add that repo yourself?

I did spell the group name wrong though... "Development Tools"
 
Old 04-23-2012, 11:55 PM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
And instead of relying on Chris for spelling the package names for you, you could use yum grouplist to list all the groups available for installation. Also, it would be nice to know which version of fedora are you using.
 
Old 04-24-2012, 12:24 AM   #9
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
This is what I have tried so far and these are the results.

[root@localhost liveuser]# yum grouplist
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Group Process
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[root@localhost liveuser]# yum groupinstall "Development Tools"
Loaded plugins: langpacks, presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[root@localhost liveuser]# yum grouplist
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Group Process
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[root@localhost liveuser]# uname -a
Linux localhost.localdomain 2.6.38.6-26.rc1.fc15.i686 #1 SMP Mon May 9 20:43:14 UTC 2011 i686 i686 i386 GNU/Linux
[root@localhost liveuser]#
 
Old 04-24-2012, 01:18 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
Please let us know the distribution name and the version. As per the errors, there seems to be an issue with the repository configuration at your end. Or if you are using a very old version of Fedora, there is a chance that the repository is no more valid.
 
Old 04-24-2012, 02:10 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
As I already said... you need to fix that "fedora" repo.
 
Old 05-02-2012, 02:03 AM   #12
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Question

This is a problem with fedora 16 you can find the details here http://http://forums.fedoraforum.org/archive/index.php/t-277594.html.I have gone through the thread but I am still not able to know which files do I exactly edit and how so that my yum starts working.Can any one please help me here?

Thanks
 
Old 05-02-2012, 02:28 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
well, that's a pretty generic error, and just seems that you have some form of network issue, which suggests you've probably not configured your virtual networking correctly... As in that thread, run

URLGRABBER_DEBUG=1 yum update

and see what it complains about then. Didn't know that trick, handy to know...
 
Old 05-02-2012, 02:57 AM   #14
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Question

This is the output of the last 50 lines of the command

URLGRABBER_DEBUG=1 yum update

Quote:
2012-05-02 07:46:06,024 attempt 1/10: https://mirrors.fedoraproject.org/me...a-15&arch=i386
INFO:urlgrabber:attempt 1/10: https://mirrors.fedoraproject.org/me...a-15&arch=i386
2012-05-02 07:46:06,024 opening local file "/var/cache/yum/i386/15/fedora/metalink.xml.tmp" with mode wb
INFO:urlgrabberpening local file "/var/cache/yum/i386/15/fedora/metalink.xml.tmp" with mode wb
* About to connect() to mirrors.fedoraproject.org port 443 (#0)
* Trying 213.175.193.206... * Timeout
* Trying 66.35.62.166... * Timeout
* Trying 85.236.55.6... * Timeout
* Trying 140.211.169.197... * Timeout
* Trying 152.19.134.146... * Timeout
* Trying 209.132.181.16... * Timeout
* Trying 2610:28:3090:3001:dead:beef:cafe:fed4... * Failed to connect to 2610:28:3090:3001:dead:beef:cafe:fed4: Network is unreachable
* Success
* Trying 2001:4178:2:1269::fed2... * Failed to connect to 2001:4178:2:1269::fed2: Network is unreachable
* Success
* couldn't connect to host
* Closing connection #0
* Couldn't connect to server
2012-05-02 07:46:28,572 exception: [Errno 14] curl#7 - "Couldn't connect"
INFO:urlgrabber:exception: [Errno 14] curl#7 - "Couldn't connect"
2012-05-02 07:46:28,572 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
INFO:urlgrabber:retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
It seems that my proxy settings are not configured but I dont know where do I have to configure them and how?Is there something else I am missing?
 
Old 05-02-2012, 03:54 AM   #15
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,629

Rep: Reputation: Disabled
If there is a proxy in your network you can configure the settings in /etc/yum.conf file
 
  


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
how to install softwares in linux paresh.nakhe Linux - Newbie 5 01-25-2009 08:10 PM
how to install softwares from other os like windows and also run portable softwares rudramurthy Linux - Newbie 6 10-16-2008 06:33 AM
How to install softwares in linux, sndarvekar Linux - Newbie 4 04-12-2008 09:47 AM
how to install softwares in linux without any internet connection?? kratosal Linux - Newbie 4 03-28-2008 01:18 AM
how to install new softwares in linux(ubuntu)? raaj.bharath Linux - Newbie 3 02-23-2008 10:45 AM

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

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