Advertisement
xdxdxd123

linux software install coursera

Apr 1st, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. Installing Atom
  2.  
  3. First, use dpkg to install a text editor, called Atom. A .deb file is located at "/home/qwiklab/downloads/atom-amd64.deb", which you can install using this command:
  4.  
  5. sudo dpkg -i /home/qwiklab/downloads/atom-amd64.deb
  6. You'll see some errors after this command, but that's okay! The atom package has some dependencies that aren't installed on your machine yet, and dpkg is just warning you that they need to be installed:
  7.  
  8.  
  9.  
  10. You can remedy this by using apt to fix the missing dependencies, using this command:
  11.  
  12. sudo apt install -f
  13. You'll be prompted to confirm your decision to continue with the operation by typing "Y" (for "Yes"), midway through the process.
  14.  
  15. Now Atom is successfully installed, which you can verify using dpkg:
  16.  
  17. dpkg -s atom
  18.  
  19.  
  20. Extracting an archive
  21.  
  22. Next, you will extract a .tar archive. The archive "extract_me.tar" is located in "/home/qwiklab/downloads/". Move to that directory, using this command:
  23.  
  24. cd /home/qwiklab/downloads
  25. You can use the Linux tar command to extract it using this command:
  26.  
  27. sudo tar -xvf extract_me.tar
  28. The contents of the archive (the file named "great_job") are then extracted:
  29.  
  30.  
  31.  
  32. Archiving files
  33.  
  34. First, move back to the original directory:
  35.  
  36. cd ~
  37. You can also use the tar command to do the reverse operation, creating an archive. There are three files in your /home/qwiklab/documents folder named "Earth", "Mercury", and "Venus". Use tar to archive them into the file "Planets.tar" using this command (one line):
  38.  
  39. tar -cvf Planets.tar /home/qwiklab/documents/Earth /home/qwiklab/documents/Mercury /home/qwiklab/documents/Venus
  40. "Planets.tar" will then be added to your current directory, and will contain the three planet files:
  41.  
  42.  
  43.  
  44. Installing 7-Zip
  45.  
  46. You can also install programs on Linux, using apt too, which handles dependencies for you to simplify the installation process. You can install the program 7-Zip, using apt, with a simple one-line command:
  47.  
  48. sudo apt install p7zip-full
  49. When it's finished, 7-Zip will be installed:
  50.  
  51.  
  52.  
  53. You can verify the installation using dpkg, with this command:
  54.  
  55. dpkg -s p7zip-full
  56.  
  57.  
  58. Uninstalling GIMP
  59.  
  60. Uninstallation can also be handled by apt by using "remove" instead of "install" as the argument. GIMP, an image-editing program, is already installed on your machine. Uninstall it now, using apt with this command:
  61.  
  62. sudo apt remove gimp
  63. You'll be prompted to confirm your decision midway through the uninstallation process. Confirm this by typing "Y" (for "Yes"). Then, GIMP will be uninstalled:
  64.  
  65.  
  66.  
  67. You can verify this using dpkg (like before) with this command:
  68.  
  69. dpkg -s gimp
  70.  
  71.  
  72. Conclusion
  73.  
  74. Congrats! You've successfully installed and uninstalled programs on Linux, and archived and unarchived .tar files.
  75.  
  76. Introduction
  77. ×
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement