Let’s Play With ‘apt-cache’ Some More!

inxi and you know how to open the terminal by pressing CTRL + ALT + T on your keyboard.

First, if you want to display a bunch of generic information, you can use the following:

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

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

[code]apt-cache search text editor[/code]

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

Among this giant, perhaps overwhelming, source of data are a couple of other neat things you can do. You can easily see both the dependencies and the reverse dependencies.

For clarity sake, the dependencies are the extra software that needs to be installed for the package in question to function. The reverse dependencies are what packages require the installation of the package in question in order to be fully functional.

To find the dependencies:

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

And the reverse dependencies:

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

[code]man apt-cache[/code]

[code]apt-cache stats[/code]

See? Another lovely way to use the terminal to gather information. I use the terminal nearly exclusively to manage my installed software.

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 Spin up a Quick Python Server!

What to do? What to do?

SSH (secure shell) enabled on your desktop (in this scenario) and that you know how to use it. So, it’s with a giant assumption and a leap of faith when I say that you’ve successfully used SSH to get to your desktop and you’ve already navigated to the directory where this latest and greatest distro image resides.

SCP (secure copy protocol) if you wanted. That’s all well and good, but darn it we’re aiming for the most contrived situation possible just so I can tell you how to spin up a server with Python! So, for whatever reason, you’re hellbent on doing this in your browser. And do this in your browser you shall!

contribute to the site!

[code]python -V[/code]

[code]python -m SimpleHTTPServer[/code]

[code]python3 -m http.server[/code]


You're effectively running a simple server.

access by hostname
See? No IP address required! You can also use this for the above mentioned SSH!

Now, if you want to do so, you can also change the port number. This is the same for both commands. In both cases, just add your chosen port number at the end. Like so:

[code]python3 -m http.server 9000[/code]

And, again, it should look a bit like this:

See? It's a different port number.
Note the changed port number. You should probably avoid reserved ports.

[code]wget http://kgiii-lmde.local:9000/debian-10.8.0-amd64-DVD-1.iso[/code]

Manage Debian Repositories with a GUI

Start your terminal with the trusty CTRL + ALT + T.

[code]sudo nano /etc/apt/sources.list[/code]

commenting out the sources

[code]sudo apt update[/code]

[code]sudo apt install software-properties-gtk[/code]

Software & Updates on Debian

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.