Package¶
Repositories official tutorial
APT (Advanced Package Tool)¶
Basic Usage¶
- Update package list:
sudo apt update - Upgrade all packages:
sudo apt upgrade - Install software:
sudo apt install <package-name> - Uninstall software:
sudo apt remove <package-name> - Search for software:
apt search <keyword> - Display package information:
apt show <package-name> - Display Version table, installed, next version:
apt policy <package-name>
Principles¶
APT is an advanced package management tool that uses dpkg as its backend. APT can:
- Resolve dependencies
- Fetch packages from configured sources
- Perform complex package management operations
PPA Configuration¶
PPA (Personal Package Archive) allows developers and users to create their own software repositories.
- Add PPA:
sudo add-apt-repository ppa:<repository-name> - Remove PPA:
sudo add-apt-repository --remove ppa:<repository-name>
PPA source files are located in the /etc/apt/sources.list.d/ directory.
Add Personal Repo¶
https://wiki.debian.org/DebianRepository/Format?action=show&redirect=RepositoryFormat Here's how to configure GPG signing in CI:
https://wiki.debian.org/DebianRepository/Setup
https://wiki.debian.org/DebianRepository/Setup
Generate GPG key (locally):
gpg --full-generate-key
gpg --list-secret-keys --keyid-format LONG
gpg --armor --export-secret-key YOUR_KEY_ID > private.key
gpg --armor --export YOUR_KEY_ID > public.key
Add keys as GitHub Secrets:
- Go to repo Settings -> Secrets and variables -> Actions -> Repository secrets
- Add two secrets
- GPG_PRIVATE_KEY: private key content
- GPG_PASSPHRASE: key passphrase
GitHub - AtticusZeller/deb-index
Flatpak¶
Flatpak is a system for building and distributing desktop applications.
Install Flatpak¶
Install the Software Flatpak Plugin¶
The Flatpak plugin for the Software app makes it possible to install apps without needing the command line. To install, run:
Note
the Software app is distributed as a Snap since Ubuntu 20.04 and does not support graphical installation of Flatpak apps. Installing the Flatpak plugin will also install a deb version of Software and result in two Software apps being installed at the same time.
Add the Flathub Repository¶
Flathub is the best place to get Flatpak apps. To enable it, run:
Restart¶
To complete setup, restart your system. Now all you have to do is install some apps!
Unsnap¶
GitHub - popey/unsnap: Quickly migrate from using snap packages to flatpaks
git clone [email protected]:popey/unsnap.git
cd unsnap
./unsnap auto
Local Management¶
Override¶
global settings if no following with flatpak list got Application ID likecom.example.App
BUG
- use
flatpak-spawn --host --env=TERM=xterm-256color zshas shell path inpycharmCan't use zsh in terminal · Issue #23 · flathub/com.jetbrains.IntelliJ-IDEA-Ultimate · GitHub