banner



What Does Apt-get Install Only Download Packages And Dependencies

As Linux users, nosotros all take faced an error nearly missing "dependencies" while installing some piece of software at ane bespeak or another. In general, such errors or, more appropriately, messages are acquired by a function of the program being unavailable, outdated, or missing. In this guide, nosotros will be discussing how to address these bug correctly.

What are dependencies?

Dependencies are files or components in the form of software packages essential for a program to run properly. This is the case with Linux overall – all software depends on other pieces of code or software to function correctly. So, this sort of "sectional" arroyo is where dependencies originate from. They are additional simply essential pieces of code that are crucial to making programs piece of work. This also explains why nosotros get dependency errors during program installations as the programs being installed depend on other, missing code.

What is APT?

In the domain of Linux and, more than specifically, Ubuntu, APT is short for Advanced Package Tool. It is the chief user interface that comes equipped with libraries of programs pertinent to software package management in Linux distributions such as Ubuntu and Debian.

Then comes the apt command, which is the nigh common way of interfacing with the Advanced Package Tool. Ubuntu users use apt to install new software, update and upgrade non merely existing packages but too the unabridged operating organisation. This is what makes apt a very powerful and commonly used control in Ubuntu. Furthermore, the abilities of the apt command are not limited to just installing software packages, as it also plays a very important part in handling dependencies.

When downloading dependencies, we use the apt-get command. The principal function of apt-go is to obtain software packages and information from their respective repositories. The sources of these packages are authenticated and secure. The same procedure works for updating and removing dependencies.

Installing dependencies

Now, let u.s. finally get into using the apt-go command and start installing dependencies. Simply before that, it is important to learn what the syntax of this command is.

$ apt-get [options] command

The syntax described to a higher place is the nigh ordinarily used ones; however, there are some other ways to call this command.

$ apt-get [options] install |remove pkg1 [pkg2…]

Another method to utilise apt-get is as follows.

$ apt-get [options] source pkg1 [pkg2…]

With that being said, y'all should at present have a good general understanding of how apt-get works and how you can use information technology to install dependencies. The side by side stride is to start looking at practical instances of its usage to meet how we can apply dissimilar control variants to dispense dependencies.

Allow united states of america suppose that you desire to install Python on your Ubuntu system. The beginning thing you would need before you install Python is a dependency known as libpython2.7-minimal. So, y'all can run the command below to get it.

$ apt-get install libpython2.7-minimal

(You may demand to enter Ubuntu every bit root, so run $ sudo -i)

The output shows that the required package has been retrieved, extracted, and configured. Nosotros as well become the amount of storage infinite the parcel is consuming. If any missing packages are remaining, we tin can simply run the control below to install those every bit well.

$ apt-get install libpython2.7-minimal libpython-stdlib:amd64

Now that all the dependencies are taken intendance of, nosotros tin install Python with the traditional control as follows.

That pretty much covers how y'all can install dependencies in Ubuntu; nonetheless, in that location are other ways you can manipulate them every bit well. We will cover these in the adjacent section.

Additional Information

Let'south say, for instance, you wish to remove the dependency we only installed. You can do that past executing the post-obit command.

$ apt-get remove libpython2.7-minimal

You tin can run an apt control to update all the packages on your organization. This is by and large considered good, precautionary practice before proceeding with regular processes. It makes sure that all of your dependencies are met and updated.

or

Next, nosotros volition see how one tin can list all the packages on their arrangement by running an apt command. The output of this control volition display to us a long list of software packages that are available for installation.

Even so, you may desire to install a specific package but not know which other dependencies need to be installed for it to piece of work. Ubuntu fixes this issue through the showpkg flag. Run the control below to find out which dependencies are required.

$ apt-enshroud showpkg libslang2

Hither, libslang2 is the initial package we wanted to install. In brusque, we can use the showpkg control to obtain more information on the dependencies we need for a certain package.

As we mentioned earlier, all the packages we install consume disk space, whether additional dependencies or the main programs themselves. Therefore, due to excessive dependencies, our computer can get chaotic. Only worry non, equally Linux has us covered in that section as well. You tin merely run the commands given below to "make clean" your dependencies.

$ apt-become make clean
$ apt-get autoclean

In CentOS, the same operation is performed past the commands yum clean or yum cleanall. The clean flag clears all .deb files from the repository in var/cache/except for lock files. All the same, the autoclean flag too clears all the .deb files from the repository every bit mentioned to a higher place, just but the ones that have gone obsolete. These software packages are not available for download anymore.

Conclusion

In this commodity, we went into neat detail near how i can install dependencies through apt. Nosotros first learned how dependencies work and why they are needed. Later on, nosotros saw how ane could install them and farther manipulate them through other commands.

Virtually the author

Hi there! I'm a Software Engineer who loves to write near tech. You lot can attain out to me on LinkedIn.

What Does Apt-get Install Only Download Packages And Dependencies,

Source: https://linuxhint.com/install-dependencies-apt/

Posted by: petersenpectiong.blogspot.com

0 Response to "What Does Apt-get Install Only Download Packages And Dependencies"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel