Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-13-2007, 10:00 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 11

Rep: Reputation: 0
how copy a file from a cd into the computer using the comand line?

I would like to install gnuplot on an old computer with red hat 5.2. It is not connected to the internet and for some reason I am not being able to install that package from the installation cds. I want to copy gnuplot on a cd, downloading it from internet using another computer, and then copy the file to my old computer. My question is, how to copy a file from a cd using the command line (red had 5.2 does not have features of dragging to copy)? I need to know a command such a the ones used in mtools (which works to my knowledge only on diskettes and that program will not fit in a diskette) to be used with cds. I need to do that from the command line. Is there such a command? Thanks.
Old 04-13-2007, 10:27 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Why in the world are you running RHL 5.2???

To answer your question, from where the CD is mounted to from the console or xterm session type something like;

cp filename_in_full /where/you/want/the/file/filename_in_full

But all you really need to do is from where the CD is mounted to from the console or xterm session type something like;

rpm -ivh <the_name_of_the_rpm_package_file_name_in_full>
Old 04-13-2007, 02:45 PM   #3
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
The trouble with downloading individual rpms is that they are very likely to throw dependency errors. If you use the on-line method or the install cds, you system will automatically download any other packages that may be required. If you give it only a single package without access to anything else, it often won't work and before long you will be hunting the internet for more packages to download and install (which may produce their own dependency issuess...).

As Lenard said, why go to all the trouble when you can get so many brand new distros for free?
Old 04-13-2007, 11:07 PM   #4
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,075

Rep: Reputation: 205Reputation: 205Reputation: 205
first do a ls /mnt look for /mnt/cdrom
If it's not there do a mkdir /mnt/cdrom
then "mount /dev/cdrom -t iso9660 /mnt/cdrom"
now you can do anything you need to with the cd

now for my 2cents worth
If your running that old of a version of red hat because the computer is badly out dated
try a newer version of slackware start with slackware 8.0 and go down from there
be ready to install from source at the veary least read the README that comes with all source code
for what dependices and what you need to do th install the program


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
Comand Line excercise help/questions happydog500 Programming 9 01-28-2007 03:29 AM
Computer freeze after graphical login and comand line login TheBrick Linux - Software 3 04-20-2006 11:53 AM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 05:38 AM
Help w/comand line dolvmin Linux - Software 2 09-23-2003 05:28 PM
command line CDR / copy file rioguia Linux - Newbie 4 10-05-2002 05:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration