Ubuntu list packages

On an Ubuntu operating system, there are a lot of packages that are pre-installed. But you can also install new packages on top of that to enhance your Ubuntu experience as a user.

ubuntu list packages

Sometimes it is necessary to find out how many packages are installed, whether a specific package is installed or not, what version of that package is installed, what architecture the package belongs to etc. The good news is that you can find out all of this information. I will show you how to find these information in this article. I will be using Ubuntu From the output of the command, you can see that the first column resembles the status of the installed package. The second column is the name of the package.

Ubuntu Packages Search

The third column is the version of the package. The fourth column is the architecture of the package. The fifth column is the description of the package. The first letter describes the desired package status.

ubuntu list packages

The second letter describes the current status of the package. You can easily do that. You can see that I have openssh-client, openssh-server and openssh-sftp-server packages installed on my Ubuntu You can also add more conditions.

Like whether a specific version of specific package is installed. You can also find out how many packages are installed on your Ubuntu operating system. This is a little bit tricky, but it is possible. From the previous output, you can see that the header consists of 5 lines. So we have to subtract 5 lines from the output. Thanks for reading this article. A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.

How to List Installed Packages on Ubuntu On an Ubuntu operating system, there are a lot of packages that are pre-installed. Can you tell the version of these packages? Well you can. Run the following command to find whether nano 2. You can add any number of conditions, just use more grep commands.

Find out how many packages are installed: You can also find out how many packages are installed on your Ubuntu operating system. Admin A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers. View all posts.About Submit A Tip. Linux Uprising blog. Logix Updated on TZ aptconsoledebianhow-toubuntu. This article explains how to list all the packages available in an Ubuntu, Linux Mint or Debian repository installed and available for installbe it an official repository or a third-party source like a PPA, and so on.

Below you'll find 2 ways of listing packages from a repository: using a GUI or from the command line. Synaptic is a graphical package management application for APT APT being the main command line package manager for Debian and its derivatives.

If you don't have Synaptic installed, you can install it on Debian, Ubuntu, and any Debian or Ubuntu based Linux distribution, including elementary OS, Linux Mint and so on, by using this command: sudo apt install synaptic To list all the packages in a particular software repository using Synaptic, launch the application and click on Origin in the bottom left-hand side of its window.

How to update list of available packages on Ubuntu server

Next, select the repository for which you want to list all available packages both installed and available for installation from the list that's displayed in the left-hand side of Synaptic Package Manager.

For example, here's Synaptic showing all the packages available in the Google repository, listing Google Chrome stable, beta and unstable, as well as Google Earth Pro and EC:. Please post civil and on-topic comments. Commenting guidelines. Recent Posts recentposts. Cookie Settings. Follow by Email. License: Creative Commons Attribution 4.As of November 18, the supported releases are Xenial Xerus Note, to install R 3.

See below for details. Even though R has moved to version 3. Users who need to compile R packages from source [e. The R packages for Ubuntu otherwise behave like the Debian ones. Therefore, it is suggested to activate the backports repositories with an entry like.

A number of R packages are available from the Ubuntu repositories with names starting with r-cran. The following ones are kept up-to-date on CRAN: all packages part of the r-recommended bundle, namely.

Users who need to update one of these R packages say r-cran-foo should first make sure to obtain all the required build dependencies with. Because they rely on the installed version of R, we also provide, on an experimental basis, versions of the following packages as up-to-date as the Ubuntu release allows:.

Please notice that the maintainers are not necessarily themselves users of these packages, so positive or negative feedback through the usual channels see below would be appreciated. Finally, as an added convenience to Ubuntu users who interact with R through Emacs, we also provide an up-to-date version of the package.

To add the key to your system with one command use thanks to Brett Presnell for the tip :. Some people have reported difficulties using this approach. The issue is usually related to a firewall blocking port If the first gpg command fails, you may want to try thanks to Mischan Toosarani for the tip :. Then, feed the key to apt-key with. These can be updated using apt-get with.

Installing R packages not provided with Ubuntu first requires tools to compile the packages from source. These tools are installed via the R development package with. This pulls in the basic requirements for compiling R packages. Otherwise, you will be asked if a directory in your home directory should be created for these packages.

A routine update of such locally compiled packages can be done using. You can have a look at the components of this path by. This means that packages installed from within R take precedence over the ones installed via the Ubuntu package management system if you happen to have two versions installed at the same time.

The Debian R packages are maintained by Dirk Eddelbuettel. The Ubuntu packages are compiled for i and amd64 by Michael Rutter marutter gmail. Installation To obtain the latest R 3.

To obtain the latest R 3.Having a list of installed packages helps system administrators maintain, replicate, and reinstall systems.

Linux based systems install dependencies all the time, hence it is essential to know what is on the system. In this tutorial, learn how to list all installed packages with apt and dpkg, save the list to a file or list specific packages and versions. Starting with version Besides helping you install packages, apt makes listing installed packages easy.

Upon executing, the output will display all installed software packages, including versions and architecture. It will also list all packages installed as dependencies. For most users, the list will be a long one. Try piping the output using less. The output will be an easily manageable list of installed software packages. Use the up and down arrow keys to scroll up and down.

To get a list of a specific software package and its respective details, type the following in the terminal:. Use the apt show command to view details of a specific installed package. To check which packages may be updated, use the apt list command with the upgradable flag. Pipe the command with less for easy navigation. Once the system executes the command, the output will display all upgradable packages. Furthermore, it will display details, such as the installed version and the latest version available.

If using lesspress Q to return to the command line. The system will present all the available package versions in a repository.

This is a repository-wide search.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. I want to know where I can find my installed application when I installed it on Ubuntu using package manager.

To see the files contained in a package NOT installed, do this once if you haven't installed apt-file already:. See this question for more.

More specific to Ubuntu is the Ubuntu Server Guidewhich will describe everything in enough detail. So many of the other guides gloss over too many of the details, but this should be better. The answer given by Gilles is very useful actually, the answer was improved over time. Furthermore, I have a tip for the ones that don't want to install any auxiliary package like the apt-file :.

Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:. Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it.

The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How do I get a list of installed files from a package?

Ask Question. Asked 9 years ago. Active 1 year, 2 months ago. Viewed k times. Flyk 1, 3 3 gold badges 17 17 silver badges 24 24 bronze badges. Anupam Gupta Anupam Gupta 4, 3 3 gold badges 5 5 silver badges 6 6 bronze badges. What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific. Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

I just installed RabbitMq and want to know where it is residing i need to configur its run.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. I know how to list all packages installed on my system. But how could I get a list of all repositories and PPA's into a script that I can run on a new machine to replicate the repository setup including the keys? Thanks for the pointers. With a little cleanup I got a script that lists the PPAs, but not any other repository:. This should do the trick. I needed a question on superuser to figure out the correct regex.

I am surprised that the simplest but most effective way to get all enabled binary software sources together with the file they're specified in hasn't been posted yet:. From all processed files, this will print every line starting with deb.

This excludes commented lines as well as deb-src lines to enable source code repositories. If you want a shorter but possibly only in I use this command to list all configured software sources repositoriesincluding currently disabled ones :. You could probably generate the apt-add-repository commands with that.

Here is a generated list without source files and no samsung printer ppa:. You can add --ppa-only to show only the PPAs. And to make an install script, pipe into another script " make-apt-repository-install-script ".

Install and Remove deb packages in Ubuntu 16.04

Again, the important part is the xargs command on the last line, the rest is boilerplate. To have it add ppa. No dupe lines.

Thanks BobDodds! If anybody would be interested, I have updated your code a little hope you don't mind. Ubuntu Community Ask!

Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How can I get a list of all repositories and PPAs from the command line into an install script? Ask Question. Asked 7 years, 10 months ago. Active 3 months ago. Viewed k times. Any ideas? Active Oldest Votes. With a little cleanup I got a script that lists the PPAs, but not any other repository:! Next stop: do that for the other repositories:! It actually matches a literal backslash.

You don't need to escape the - when it is at the start or end of the [] list; actually, you can't escape it!. O Sep 7 '12 at By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Ask Ubuntu is a question and answer site for Ubuntu users and developers.

It only takes a minute to sign up. FreeBSD user joining your ranks.

ubuntu list packages

I've been asked to look after an Ubuntu Server running Would anyone be able to point me in the right direction so as I can see which packages will get updated when I run apt-get upgrade? You could install aptitude if it isn't already installed. It's a great tool for managing packages in a headless setup. Otherwise if you just want to see what's going to happen when you run something, use the --dry-run argument and it won't actually do anything, it'll just tell you what it would do:.

From the apt-get man page. As of now Ubuntu Another alternative would be to use aptitude with a search term :. That means: "search for all packages that are installed and can be upgraded". Reference: aptitude user's manual. By default, aptitude search shows for each package its name, description and a few flags, but you could also adapt the output to your needs. For example, to list only the package names, the command would be:.

Below command will show you the list of installed packages which has an update available in the repositories. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How do you see what packages are available for update Ask Question. Asked 8 years, 2 months ago.


Comments on “Ubuntu list packages