Advertisement
test01ies

Installing ‘dos2unix’ from Source Code - Change windows format to linux format in files

May 20th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | Source Code | 0 0
  1. Installing ‘dos2unix’ from Source Code
  2.  
  3. If ‘dos2unix’ is not available in your distribution’s package repository or you need a different version, you can install it from the source code. Here’s a step-by-step guide on how you can do it:
  4.  
  5.     Download the source code from the official website or a trusted source. You can use the ‘wgetcommand to do this:
  6.  
  7. wget http://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.2.tar.gz
  8.  
  9. Bash
  10.  
  11.     Extract the downloaded file using the ‘tar’ command:
  12.  
  13. tar -xvf dos2unix-7.4.2.tar.gz
  14.  
  15. Bash
  16.  
  17.     Navigate into the extracted directory:
  18.  
  19. cd dos2unix-7.4.2
  20.  
  21. Bash
  22.  
  23.     Compile and install the program. The ‘makecommand compiles the program, and ‘sudo make install’ installs it:
  24.  
  25. make
  26. sudo make install
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement