0

So I have a Scientific Linux LiveDVD. And I have it installed on a PC that has no hard drives configured and avaliable at all. I want to install some applications that would allow me to configure system before I would be able to install OS.

So I wonder: how to create a temporary installation folder that would exist only while OS is running in RAM, install applications into it (using standart installer yum) and be able to run them?

3

Yum will do that by default in Live mode; anything you install whilst running off a live optical disc is installed to RAM because you are running off of RAM as it is.

If you want to do it explicitly, though, you can create a RAM disk:

mkdir foo
mount -t tmpfs -o size=4096M bar /foo

where: mount is the command. -t tmpfs specifies the type of filesystem. In this case, the filesystem type is tmpfs -o size=4096M is for options and in this case, define the size as roughly 4gb. You can obviously make it larger or smaller depending on your needs and available RAM. bar is the label of the filesystem that you are creating. Name it whatever you please; you'll rarely see it. /foo is the location you want to mount the RAM disk.

I do not see an advantage to doing it this way; the live environment's default should work just as well.

  • But how to set yum to install apps into there and run apps from there? – DuckQueen Aug 14 '15 at 7:44
  • Yum will do that by default in Live mode. – Klaatu von Schlacker Aug 16 '15 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.