Compress a PDF in Ubuntu using GhostScript

View Solution Article
How_to_Compress_PDF_in_Linux.pdf

Refer: compress-pdf-linux

Synopsis / Example

$ sudo apt install ghostscript
$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf
dPDFSETTINGS   Description
/prepress    (default) Higher quality output (300 dpi) but bigger size
/ebook         Medium quality output (150 dpi) with moderate output file size
/screen        Lower quality output (72 dpi) but smallest possible output file size

Upgrade Single Package in Ubuntu

Refer: upgrade-single-package

As usual you need to fetch an updated index from the Internet:

sudo apt-get update

Now upgrade a package, where Package is whatever you want.

sudo apt-get --only-upgrade install Package
sudo apt-get install Package

Bonus, see list of packages available for upgrade

sudo apt-get update
sudo apt list --upgradable

Using Dolphin Browser

The Dolphin browser has a nice integration with the terminal, but you need to install the addtional plug-in.

sudo apt-get install dolphin
sudo apt-get install dolphin konsole
sudo apt-get install ark

Install SQLite Browser

It looks like my SQLite Browser Got Updated to Snap, and it was using the development branch and NOT the stable branch. Here are some of the snap tricks you can use to see what's installed, what's available and to fix things.

See what you are using
$ which sqlitebrowser

See what snap versions you have local
$ snap list sqlitebrowser --all

See what versions are available
$snap info sqlitebrowser

Revert a local version
$ sudo snap revert sqlitebrowser --revision 2851

Uninstall and Install Stable Version
$ sudo snap remove sqlitebrowser
$ sudo snap install sqlitebrowser --channel=latest/stable

Has a nice Query Builder

$ sudo apt-get update
$ sudo apt-get install sqliteman

SQLiteStudio
Refer: https://sqlitestudio.pl

SQLiteBrowser
Refer: https://linuxhint.com/install-sqlite-browser-ubuntu/

Install
$ sudo add-apt-repository ppa:linuxgndu/sqlitebrowser-testing
$ sudo apt-get update && sudo apt-get install sqlitebrowser

Remove
$ sudo apt-get remove sqlitebrowser