I say yes please go ahead and update dependencies

Info icon This preview shows pages 53–54. Sign up to view the full content.

View Full Document Right Arrow Icon
worry about it. I say yes, please, go ahead and update dependencies, install new dependencies, then install the package for me. Alright, the process is complete. It tells me that this package was installed, these dependent packages over here were also installed, and these packages that were already installed on the system were updated, so I can install this particular package. Now I have a C compiler installed on my Linux system. If I'm a programmer, I can write my own code,and compile it using the gcc command. apt-get Command 4:14-6:18 Now some Linux distributions don't use yum. Those are based on the Debian distribution, such as Ubuntu, use a different type of software package, and so they have to use a different command to manage them. On these types of systems we use the apt-get command. Now apt-get basically runs in the same way as yum. It provides a similar function. Apt-get will, first of all, go out and download the software package you want to install on your system from the appropriate repositories. In this case, if I run it on this system it will go out to the Ubuntu repositories on the Internet and download whatever software it is I want to install on the system for me, and just like yum it'll also calculate any dependencies and install that software as well, if necessary. Now just as with the yum command on the Fedora system, I do have to elevate privileges on this Ubuntu system before I can use apt-get to manage software. Now I'm going to use the sudo command to elevate privileges. On this system, my rtracy user account is allowed to install software if I run the sudo command first.The sudo basically grants me temporary root level privileges to run a particular command. So you need sudo to run apt-get as root. Then we have to tell apt-get what it is we want to do. We want to install. You can do other things with apt-get and yum, for that matter, as well. You can use it to install software. You can use it to uninstall software, and so on. In this case, we want to install it. And then we have to specify the name of the package we want to install. There's a little package I really like called celestia. It's available in the Ubuntu repository out on the Internet. So I'm going to tell apt-get to go out, get celestia, calculate dependencies, and then install all the software necessary for this particular package to be installed on this system. Go ahead and press Enter, I do have to provide my password to gain root level privileges to the system. It's gone out, it's found the packages that are necessary and it prompts me, do you want to continue? And I say yup, please do. And now it goes out and downloads the software, and then it installs it on the system. Summary 6:19-6:26 That's it for this demonstration. In this demo, we talked about how to manage software in Linux systems. We talked about using the yum command. We also talked about using the apt-get command.
Image of page 53

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 54
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern