![]() ![]() If you want to get a taste of what it’s all about and you have a Raspberry Pi then all you need is a free micro-SD card to give it a try. ![]() Robot (highly recommended) then you might notice that all the cool in-the-know people are running Kali Linux. ![]() However with the apt-get package manager you can add pretty well anything that has been left out. One cool thing is that Kali Linux has a stripped down version for the Raspberry Pi that is oriented towards a number of specialized purposes. It comes with a large number of hacking tools for gaining access to networks, compromising computers, spying on communications and other fun things. Kali Linux is a specialist distribution that is oriented to hackers (both black and white hat). As a consequence it’s quite easy to create a Raspberry Pi Linux distribution, so there are quite a few of them. ![]() Raspbian is based on Debian Linux and there has been a good uptake on the Raspberry Pi which means that most Linux applications have ARM compiled packages available through the Debian APT package manager. We can search or filter installed packages with dpkg and grep .Raspbian is the main operating system for the Raspberry Pi, but there are quite a few alternatives. What if we are looking for a specific package and want to list wheter it is installed or not. $ apt list -installed | wc -l Search and Filter In Installed Packages with dpkg and grep We can also use apt and apt-get for installed package counting like below. $ dpkg -l | grep -e "^ii" | wc -l Count Installed Packages with dpkg Count Installed Packages with apt-get In this example we will list installed package count with dpkg command. We can also count installed packages by simply using wc command. $ apt list -installed List Installed Packages and Details with apt-get or apt Count Installed Packages with dpkg In this example we will use apt and list command by providing -installed parameter to list installed packages. We can also use apt or apt-get inorder to list installed packages and their details. $ dpkg -get-selections | grep -v deinstall | cut -f 1 List Installed Packages Names Only with dpkg List Installed Packages and Details with apt-get or apt We will use -get-selections option and some grep to remove lines those contains deinstall like below. We can also list only installed package names with dpkg too. $ dpkg-query -f '$\n' -W List Installed Packages Names Only with dpkg-query List Installed Packages Names Only with dpkg We also provide some regex for this like below. We can use dpkg-query to only list package names. But this will be problem in some cases and we will need only the package name. List Installed Packages Names Only with dpkg-queryĪs we have seen previous example dpkg will list a lot of information. Description brief information about package.Architecture the package cpu architecture.$ dpkg -l List Installed Packages and Details with dpkg The detailed will provide following information. We will use -l option which will list installed packages with their details. We will start with dpkg package manager in order to list installed packages. List Installed Packages and Details with dpkg In this tutorial we will look how to list and count all ready installed packages in Ubuntu, Debian, Kali and Mint. But in some cases we may need to list and count installed packages. We generally use this commands to install or remove packages from Linux systems. Ubuntu, Debian, Kali and Mint distributions uses apt-get and dpkg commands for package management. ![]()
0 Comments
Leave a Reply. |