How to Install Specific Version of Package using apt-get. To handle Debian-based system packages, we use the apt-get command. To list all the installed. How do I download a package from apt-get without installing it? This will download package to current working directory: aptitude download package_name. How can I install a R package on a offline Debian machine?
- Install Package From Source Debian
- Debian Software Packages
- Download Software Debian Query All Installed Packages
- Download Software Debian Query All Installed Packages Ubuntu
- Debian Install Packages
I would like to go through a Linux system, and find out what packages have been installed, whether it was with a .deb
file, or through the apt
or dpkg
interface. Is there a common location to find the names of the packages installed?
3 Answers
I prefer to use dpkg -l
because we are all lazy :)
From Debian Wiki
.
To list the installed packages you can use the following command:
List the installed packages using a search pattern:
To check the status of all packages on your system:
To list the installed packages you can also use the following command (as mentioned in other answers):
And store the list installed software to a file called /backup/installed-software.log
:
It's interesting you look at man dpkg-query(1)
for more information.
To view installed packages you can use dpkg -–get-selections
. This will usually be a long list, so filters using grep
might be used. dpkg -–get-selections | grep php
Install Package From Source Debian
Not the answer you're looking for? Browse other questions tagged debianpackage-management or ask your own question.
Question: I would like to know how to install, uninstall, verify deb packages on Debian. Can you explain me with an example?
Answer: Use dpkg to install and remove a deb package as explained below.
On Debian, dpkg (Debian package system) allows you to install and remove the software packages. dpkg is the simplest way to install and uninstall a package.
Debian Software Packages
Debian now supplies a tool named Apt (for “A Package Tool”) and aptitude to help the administrators to add or remove software more easily. Refer to our earlier Manage packages using apt-get for more details.
Installing a Deb Using dpkg -i
The following example installs the Debian package for tcl tool.
You can verify the installation of package using dpkg -l packagename as shown below.
The above command shows that tcl package is installed properly. ‘ii’ specifies status ‘installed ok installed’.
Uninstalling a Deb using dpkg -r
Download Software Debian Query All Installed Packages
dpkg with -r option removes the installed package.
Now list the package and check the status.
Download Software Debian Query All Installed Packages Ubuntu
rc stands for ‘removed ok config-files’. The remove action didn’t purge the configuration files. The status of each installed package will be available in /var/lib/dpkg/status. Status of tcl8.4 package looks like,
The following command is used to purge the package completely.
So the package is completely removed, and the status in the /var/lib/dpkg/status is given below.