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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-03-2012, 08:12 AM
|
#1
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Rep:
|
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
|
|
|
04-03-2012, 08:29 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
04-03-2012, 08:32 AM
|
#3
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
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.
|
|
|
04-04-2012, 01:34 AM
|
#4
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Original Poster
Rep:
|
How to transfer the rpms on the guest machine
Quote:
Originally Posted by linuxlover.chaitanya
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
|
|
|
04-04-2012, 02:07 AM
|
#5
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
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.
|
|
|
04-23-2012, 09:45 AM
|
#6
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
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 
|
|
|
04-23-2012, 09:49 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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"
|
|
|
04-23-2012, 11:55 PM
|
#8
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
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.
|
|
|
04-24-2012, 12:24 AM
|
#9
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Original Poster
Rep:
|
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]#
|
|
|
04-24-2012, 01:18 AM
|
#10
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
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.
|
|
|
04-24-2012, 02:10 AM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
As I already said... you need to fix that "fedora" repo.
|
|
|
05-02-2012, 02:03 AM
|
#12
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Original Poster
Rep:
|
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
|
|
|
05-02-2012, 02:28 AM
|
#13
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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...
|
|
|
05-02-2012, 02:57 AM
|
#14
|
Member
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Original Poster
Rep:
|
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:urlgrabber pening 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?
|
|
|
05-02-2012, 03:54 AM
|
#15
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
If there is a proxy in your network you can configure the settings in /etc/yum.conf file
|
|
|
All times are GMT -5. The time now is 03:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|