-
Notifications
You must be signed in to change notification settings - Fork 0
Arch Linux
For Arch installation, use the September 1 ISO version and follow the comprehensive installation guide available at https://www.youtube.com/watch?v=8oCHxzJky4U.
The installation process requires careful attention to partitioning, bootloader configuration, and initial system setup.
Arch Linux uses pacman as its package manager. Here are the essential commands:
Install packages:
sudo pacman -S pkg1 pkg2Remove packages:
sudo pacman -R pkg # Basic removal
sudo pacman -Rs pkg # Remove with dependencies
sudo pacman -Rns pkg # Remove with dependencies and config files
sudo pacman -Rc pkg # Remove with dependent packagesUpdate system:
sudo pacman -Syu # Full system update
sudo pacman -Syy # Force refresh package databasesList packages:
pacman -Q # All installed packages
pacman -Qi pkg # Detailed package info
pacman -Ql pkg # Files provided by package
pacman -Qdt # Orphaned packages
pacman -Qu # Available updates
pacman -Qet # Explicitly installed packagesDependency trees:
pactree pkg # View dependency tree (requires pacman-contrib)Cache management:
paccache -r # Keep 3 most recent versions
pacman -Sc # Remove uninstalled packages from cache
pacman -Scc # Remove all cached packagesPackage information:
expac -H M '%m\t%n' | sort -h # Package sizes
expac --timefmt='%Y-%m-%d %T' '%l\t%n' | sort | tail -n 20 # Last 20 installedConfiguration:
- Main config:
/etc/pacman.conf - Package cache:
/var/cache/pacman/pkg/
Vim is available on every Linux system, while Neovim may require installation. Learning Vim significantly improves coding efficiency and system administration capabilities.
Vim configuration:
- Config file:
~/.vimrc - Plugins directory:
~/.vim/
Neovim configuration:
- Config directory:
~/.config/nvim/ - Main file:
~/.config/nvim/init.lua - Plugins location:
~/.local/share/nvim/site/pack/packer/-
start/- Auto-loaded plugins -
opt/- Lazy-loaded plugins
-
Neovim structure:
-
init.lua- Main configuration entry point -
lua/user/options.lua- Basic options -
lua/user/keymaps.lua- Key mappings - Plugin-specific configuration files
Health check:
:checkhealthPlugin issues:
- Delete problematic plugin directory in
pack/packer - Run
:PackerInstallto re-download - Ensure all dependencies are installed and in
$PATH
LaTeX provides excellent document preparation, especially for academic and technical writing. This guide covers local desktop setup as an alternative to Overleaf.
Install a PDF viewer like zathura (lightweight with vim navigation):
sudo pacman -S zathuraInstall VimTex plugin:
use 'lervag/vimtex'Install TeX Live: Download from https://tug.org/texlive/quickinstall.html
sudo perl ./install-tl --scheme=smallInstallation options:
-
--scheme=small- Installs ~350 packages (vs. 5000 in default) -
--location- Set server location if needed - Avoid
--no-interactionto customize--texuserdir
Add binaries to PATH for tlmgr access and VimTex integration.
Install latexmk compiler:
sudo tlmgr install latexmkVerify installation:
:checkhealthLocation: /usr/local/texlive/202*/
Essential tlmgr commands:
# List all available packages
tlmgr list
# List installed packages
tlmgr list --only-installed
# Install packages with dependencies
sudo tlmgr install amsmath tikz
# Reinstall package
sudo tlmgr install amsmath --reinstall
# Remove package
sudo tlmgr remove amsmathReference: Complete tlmgr documentation available at http://tug.ctan.org/info/tlmgrbasics/doc/tlmgr.pdf