LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-05-2008, 08:35 AM   #1
meo_beo
Member
 
Registered: Mar 2008
Posts: 33

Rep: Reputation: 15
Install a package in the virtual machine?


Hi, it would not be a problem for me to install a software package in Linux. However, the problem is that: supposed I'm using Windows XP and I've installed a Linux virtual machine on the XP environment, how can I install additional software packages on that VM? Can it possibly be done at all? Thank you for any suggestions.
 
Old 10-05-2008, 08:55 AM   #2
muasif80
Member
 
Registered: Oct 2008
Posts: 54

Rep: Reputation: 15
Yes why not

You can do it exactly the same way. The new packages will get installed in the space occupied by your virtual machine. I have done this a lot of times.
 
Old 10-06-2008, 08:31 AM   #3
meo_beo
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
Can you please be more specific? For example, if I want to install an RPM package in the real Linux OS, first I would have to "cd" to the directory containing that package. With the VM, I don't think I can do that because I have to store my RPM package somewhere in Windows and I can't access Windows files from the VM, right?
 
Old 10-06-2008, 12:13 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by meo_beo View Post
Can you please be more specific? For example, if I want to install an RPM package in the real Linux OS, first I would have to "cd" to the directory containing that package. With the VM, I don't think I can do that because I have to store my RPM package somewhere in Windows and I can't access Windows files from the VM, right?
Like muasif80 says, you do it exactly the same way. If you want to install an RPM on the "real Linux" then you boot the "real Linux". If you want to install an RPM on a virtual machine, then it stands to reason that you boot the virtual machine.

It may be the reason that you haven't realised that the virtual machine is just another machine. It's not a client of Windows. It's not a program running in XP that you install upgrades to using Windows. No, it *really is* a separate operating system running parallel with Windows that has absolutely nothing to do with the running Windows operating system other than they happen to be running on the same machine. The virtualised Linux is not a program running under Windows.
 
Old 10-06-2008, 12:26 PM   #5
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
- if u have internet connection & configure your vm network interface bridged to your real interface, set the vm linux gw,dns,ip correctly then you can access internet using vmware[Download the software directly to vm] or if you already downloaded on your windows n' you want to share it to linux on vm, you can use samba for file sharing.

- in your case , the most easy way is copy it to flashdrive then
mount it to linux on vm.

Quote:
Originally Posted by meo_beo View Post
Can you please be more specific? For example, if I want to install an RPM package in the real Linux OS, first I would have to "cd" to the directory containing that package. With the VM, I don't think I can do that because I have to store my RPM package somewhere in Windows and I can't access Windows files from the VM, right?
 
Old 10-09-2008, 04:54 AM   #6
meo_beo
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
Thank you all for your suggestions. I've just found out that I can use the "Shared folder" function provided by VM to address my problem. I mean, I can just store all the packages I need to install in that folder and access it from VM under the /mnt directory (according to the "Help" file of the VM that I read). The problem is that after I enabled the folder sharing function the "Properties" button on the "Shared Folders" window is still disabled, making in impossible for me to choose which folder to share. Anyone knows why?

Last edited by meo_beo; 10-09-2008 at 04:55 AM.
 
Old 10-09-2008, 05:23 AM   #7
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
install vmware tools first
 
  


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
How do I install a virtual package? Akhran Debian 1 11-03-2005 12:10 AM
install virtual package jupiter3437 Linux - Software 4 08-30-2005 05:06 PM
which package is Java Virtual Machine? Mathsniper Debian 3 04-17-2005 07:28 PM
How to install java virtual machine package with apt-get? davidas Debian 5 04-15-2004 11:48 PM
how can i install java virtual machine red hat-ziggis Linux - Software 1 10-23-2003 12:43 PM

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

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