Steps to Check and install package on Debian OS.

In this article, we will see how to check and install packages on debian OS.

Lets see step by step to understand this.


1. Check for installed packages on system

[saket@ngelinux001 bin]$ dpkg-query -l
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                             Architecture Description
ii  accountsservice                               0.6.45-2                            amd64        query and manipulate user a
ii  accountwizard                                 4:18.08.3-1                         amd64        wizard for KDE PIM applicat
ii  adduser                                       3.118                               all          add and remove users and gr
ii  adwaita-icon-theme                            3.30.1-1                            all          default icon theme of GNOME
ii  akonadi-backend-mysql                         4:18.08.3-7~deb10u1                 all          MySQL storage backend for A


2. Try to install the package.

[saket@ngelinux001 bin]$ sudo apt-get install pstack

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pstack


3. Download pstack .deb package from internet and then make it executable.

[saket@ngelinux001 ~]$ chmod +x pstack_1.3.1-1+b1_amd64.deb
[saket@ngelinux001 ~]$ ls -ltr pstack_1.3.1-1+b1_amd64.deb
-rwxr-xr-x 1 saket ngeuser 12752 Mar 31 13:57 pstack_1.3.1-1+b1_amd64.deb
[saket@ngelinux001 ~]$


4. Install from local file.

[saket@ngelinux001 ~]$ sudo apt-get install ./pstack_1.3.1-1+b1_amd64.deb --fix-broken
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Note, selecting 'pstack' instead of './pstack_1.3.1-1+b1_amd64.deb'
The following package was automatically installed and is no longer required:
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/12.8 kB of archives.
After this operation, 552 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 /home/saket/pstack_1.3.1-1+b1_amd64.deb pstack amd64 1.3.1-1+b1 [12.8 kB]
(Reading database ... 55959 files and directories currently installed.)
Removing libgconf-2-4:amd64 (3.2.6-5) ...
Selecting previously unselected package pstack.
(Reading database ... 55948 files and directories currently installed.)
Preparing to unpack .../pstack_1.3.1-1+b1_amd64.deb ...
Unpacking pstack (1.3.1-1+b1) ...
Setting up pstack (1.3.1-1+b1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
[saket@ngelinux001 ~]$

[saket@ngelinux001 ~]$ pst
pstack   pstopnm

Now as we can see above the command pstack is available.

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments