How To: Use ‘apt-cache’ to Find Homepage for Your Installed Apps

[code]apt-cache show inxi[/code]

[code]apt-cache show inxi | grep Homepage[/code]

[code]apt-cache stats[/code]

Let’s Count the Installed Packages!

how to use ‘dpkg’ to get a list of installed applications. It was a pretty simple command.

Now, you could try this:

[code]cat Documents/installed_apps.txt | grep ii | wc -l[/code]

cat‘ stands for concatenate. It has been around since pretty much Unix v. 1. It basically reads a file and spits out the content. The man page describes it as thus:

See? Pretty simple.

[code]dpkg -l | grep ii | wc -l[/code]

pipe. You’ll see it fairly often. It’s used to take the commands from one command and use them in another. It goes back to the philosophy of ‘hiding the internals’, with the goal being simplicity and clarity. But, you never have to make the text file to perform this counting exercise.

 




How To: See Installed Applications

Here’s a nice and quick way to see what software you have installed – assuming you’re using a distro with Aptitude.

Crack open your terminal. You can use CTRL + ALT + T. Enter this:

[code]dpkg -l[/code]

That doesn’t do you a whole lot of good, but it works. So, let’s make it more usable.

[code]dpkg -l > Documents/installed_apps.txt[/code]

Now, open your Documents directory and you’ll have a handy list of your installed apps in a file with an intuitive name.