This will list the packages it wants to install, tell you how much space it needs for the download, and then get on with it when you tell it to. Then you probably want to make sure that your system is up to date: We've already mentioned that repos are indexed, so the first thing to do is update your index files to match the current contents of the repositories with: These commands generally require root (superuser) access, so should be run at the root user or with sudo – we will stick with the sudo approach here. The main Linux commands are:Īpt-get: Installs, upgrades and uninstalls packages.Īpt-cache: This works with the repository index files, such as searching for packages.Īdd-apt-repository: Adds extra repositories to the system.ĭpkg: A lower level package manipulation command. You can access them either by using your system's search and looking for terminal or using ++ in Linux desktops such as Unity, Gnome or Xfce, even if they also provide a fancy graphical front end. It also enables you to search for programs of interest, as well as performing other functions.Īll distros will have command line package management tools. We have used the term 'package manager' a few times now but what is it? Basically, this is a program that enables you to install, update and remove software, including taking care of dependencies. These may each be added individually to your package manager, but be careful about adding any untrusted sources. Ubuntu has also introduced the concept of the PPA, or Personal Package Archive, which are small repositories for individual projects. These are not guaranteed to be tested to the same standards as the official repos, but many of them are very good, and if you stick to the popularly recommended repos for your distro, you won't go far wrong. In addition to the default repositories provided by the distro, there are several third-party ones that can be added to your package manager. Instead of bundling everything in the package and ending up with multiple copies of the same library on your computer (which is what Windows does), a package simply lists its dependencies so that your package manager can check whether they are already installed, and grab them from the repo if not. A dependency is a program that the program you want to install needs to run, such as a library. A repository also makes dependency handling simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |