Arch Linux Development Environment - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Arch Linux Development Environment Guide
Complete beginner-friendly guide to setting up development environments on Arch Linux, including programming languages, IDEs, build tools, and development workflows.
Table of Contents
- Programming Languages
- IDEs and Editors
- Build Tools
- Version Control
- Development Tools
- Container Development
Programming Languages
Python
Install Python:
# Install Python
sudo pacman -S python python-pip
# Install virtualenv
sudo pacman -S python-virtualenv
# Create virtual environment
python -m venv myenv
# Activate
source myenv/bin/activate
Node.js
Install Node.js:
# Install Node.js
sudo pacman -S nodejs npm
# Install yarn
sudo pacman -S yarn
# Use nvm (optional)
yay -S nvm
Java
Install Java:
# OpenJDK
sudo pacman -S jdk-openjdk
# Or specific version
sudo pacman -S jdk11-openjdk
# Set JAVA_HOME
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
Go
Install Go:
# Install Go
sudo pacman -S go
# Setup workspace
mkdir -p ~/go/{bin,pkg,src}
export GOPATH=$HOME/go
Rust
Install Rust:
# Install Rust
sudo pacman -S rust
# Or use rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
IDEs and Editors
Visual Studio Code
Install VS Code:
# Install VS Code
yay -S visual-studio-code-bin
# Or open-source version
sudo pacman -S code
JetBrains IDEs
Install JetBrains:
# IntelliJ IDEA
yay -S intellij-idea-ultimate-edition
# PyCharm
yay -S pycharm-professional
# WebStorm
yay -S webstorm
Vim/Neovim
Install Vim:
# Vim
sudo pacman -S vim
# Neovim
sudo pacman -S neovim
# Configure
vim ~/.vimrc
# or
nvim ~/.config/nvim/init.vim
Emacs
Install Emacs:
# Install Emacs
sudo pacman -S emacs
# Configure
emacs ~/.emacs.d/init.el
Build Tools
CMake
Install CMake:
# Install CMake
sudo pacman -S cmake
# Use CMake
mkdir build && cd build
cmake ..
make
Make
Install Make:
# Install build tools
sudo pacman -S base-devel
# Includes: make, gcc, etc.
Meson
Install Meson:
# Install Meson
sudo pacman -S meson
# Use Meson
meson setup builddir
cd builddir
ninja
Gradle
Install Gradle:
# Install Gradle
sudo pacman -S gradle
# Use Gradle
gradle build
Version Control
Git
Install Git:
# Install Git
sudo pacman -S git
# Configure
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
GitHub CLI
Install gh:
# Install GitHub CLI
sudo pacman -S github-cli
# Login
gh auth login
GitLab
GitLab tools:
# Install GitLab CLI
yay -S glab
Development Tools
Docker
Install Docker:
# Install Docker
sudo pacman -S docker docker-compose
# Add to group
sudo usermod -aG docker username
# Enable service
sudo systemctl enable docker
sudo systemctl start docker
Kubernetes
Install kubectl:
# Install kubectl
sudo pacman -S kubectl
# Install minikube
yay -S minikube
Database Tools
Database clients:
# PostgreSQL
sudo pacman -S postgresql
# MySQL
sudo pacman -S mysql
# MongoDB
yay -S mongodb-bin
# SQLite
sudo pacman -S sqlite
Container Development
Podman
Install Podman:
# Install Podman
sudo pacman -S podman podman-compose
# Use Podman
podman run -it ubuntu
Buildah
Install Buildah:
# Install Buildah
sudo pacman -S buildah
# Build images
buildah bud -t myimage .
Summary
This guide covered:
- Programming languages - Python, Node.js, Java, Go, Rust
- IDEs - VS Code, JetBrains, Vim, Emacs
- Build tools - CMake, Make, Meson, Gradle
- Version control - Git, GitHub CLI
- Development tools - Docker, Kubernetes, databases
- Containers - Podman, Buildah
Key Takeaways:
- Install base-devel for build tools
- Use package managers for languages
- Choose IDE based on preference
- Git is essential for version control
- Docker for containerized development
Next Steps
- Arch Linux Package Management - Package management
- Arch Linux Virtualization - Virtualization
- ArchWiki Development: https://wiki.archlinux.org/title/Development
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.