Linux to see if a software is installed, Ubuntu install Deb Package

Source: Internet
Author: User

1, RPM package installed, you can see with RPM-QA, if you want to find a package is installed, with Rpm-qa | grep "The name of the software or package".

[[Email protected] ~] RPM-QA | grep Ruby

2, with the Deb package installed, can be seen with dpkg-l. If you are looking for a specified package, use Dpkg-l | grep "The name of the software or package";

[[Email Protected]~]dpkg-l|grepruby

3, Yum method installed, can be found with the Yum list installed, if it is to find the specified package, command add | grep "software name or package name";

[[Email protected] ~] Yum List installed | grep Ruby

 

4, if the source code package to compile their own installation, such as. tar.gz or tar.bz2 form, this can only see if the executable file exists,

Both of the above methods do not see the package installed in this source form. If installed as root, the executable program is usually in the/sbin:/usr/bin directory.

Description: where RPM Yum is a package management command for Redhat Linux, Dpkg is a Debian Series Package management command.

--------------------------------------------------------------------------------------------------------------- -------------------

Deb is the Debian Linus installation format, very similar to Red Hat rpm, the most basic installation command is: Dpkg-i file.deb

Dpkg is a shorthand for the Debian package, a suite management system specifically developed for Debian, which facilitates the installation, updating and removal of software. All Linux distributions originating from Debian use dpkg, such as Ubuntu, Knoppix, and so on.
Here are some common uses of Dpkg:

1. Dpkg-i <package.deb>
Install a Debian package, such as files you have manually downloaded.

2. Dpkg-c <package.deb>
List the contents of <package.deb>.

3. Dpkg-i <package.deb>
Extract package information from <package.deb>.

4. Dpkg-r <package>
Remove a package that has already been installed.

5. Dpkg-p <package>
Completely clears an installed package. Unlike remove, remove just deletes the data and executable files, and purge also removes all the configuration files.

6. Dpkg-l <package>
List all files that are <package> installed. Also see Dpkg-c to check the contents of a. deb file.

7. Dpkg-s <package>
Displays information about the packages that have been installed. Also see Apt-cache displays the package information in the Debian archive, as well as dpkg-i to display the package information extracted from a. deb file.

8. Dpkg-reconfigure <package>
Reconfigure an already installed package if it is using debconf (debconf provides a unified configuration interface for package installation).

Linux to see if a software is installed, Ubuntu install Deb Package

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.