LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-16-2010, 02:29 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 480

Rep: Reputation: 31
dos2unix: command not found


I have a new machine with LINUX Red Hat 5 installed. As I try to use command dos2unix I got:

Code:
-bash: dos2unix: command not found
How can I install this command?
 
Old 07-16-2010, 02:49 AM   #2
nikooo777
LQ Newbie
 
Registered: Apr 2010
Location: Switzerland
Distribution: Debian Squeeze
Posts: 14

Rep: Reputation: 0
try to:
apt-get install dos2unix
 
Old 07-16-2010, 02:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# yum provides */dos2unix
# yum search dos2unix
# yum install dos2unix

And 'dos2unix' is on the install DVD / cd : disc 1.

The Redhat source :
http://ftp.redhat.com/pub/redhat/lin....2.el5.src.rpm
 
Old 07-16-2010, 02:51 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,599
Blog Entries: 29

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally Posted by nikooo777 View Post
try to:
apt-get install dos2unix
apt-get is for Debian based systems, AFAIK
http://www.rpmfind.net/linux/rpm2htm...query=dos2unix
 
Old 07-16-2010, 03:07 AM   #5
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Quote:
Originally Posted by thomas2004ch View Post
I have a new machine with LINUX Red Hat 5 installed. As I try to use command dos2unix I got:

Code:
-bash: dos2unix: command not found
How can I install this command?
Download and install dos2unix RPM on your system to use that command. Good luck.
 
Old 07-16-2010, 04:52 AM   #6
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 480

Original Poster
Rep: Reputation: 31
Thanks all.

I use yum install dos2unix.
 
Old 07-16-2010, 05:22 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
@sayan_acharjee post # 5 :
You are not supposed to download basic / system packages
for Linux. The 'Package Manager' / yum is to be used.

Download is when you want a package not indexed
in the "10,000 packages index".
.
 
Old 07-23-2010, 03:57 AM   #8
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Bangalore, India
Distribution: Linux Mint 13
Posts: 590

Rep: Reputation: 64
Quote:
Originally Posted by knudfl View Post
@sayan_acharjee post # 5 :
You are not supposed to download basic / system packages
for Linux. The 'Package Manager' / yum is to be used.

Download is when you want a package not indexed
in the "10,000 packages index".
.
Right, but if the system is a stand alone one (i.e, if its not in a network) then yum won't work.
 
Old 07-23-2010, 04:16 AM   #9
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 239Reputation: 239Reputation: 239
if you dont' have dos2unix , then make your own. tr for example is a standard *nix tool in most systems
Code:
tr -d '\r' < input.file  > new.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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dos2unix kdblearn Linux - Software 4 10-04-2009 11:08 AM
convert dos2unix /opt/SV DC/*.* using system command.Here path is having space. nagendrar Linux - Newbie 1 08-06-2009 05:27 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
Use of dos2unix command Karthikeyan Gurusamy Linux - Newbie 3 02-02-2006 06:32 AM
dos2unix command on a folder raghunandan Linux - Software 1 12-12-2005 07:50 AM


All times are GMT -5. The time now is 12:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration