Package Management in Xubuntu: Native XFCE Methods (2026)

Description: Xubuntu maintenance with native tools: package management, updates and optimization without external dependencies. Exclusive guide for XFCE.

Xubuntu maintenance with native tools: package management, updates and optimization without external dependencies. Exclusive guide for XFCE.

Package Management in Xubuntu: Native XFCE Methods (2026)

System optimization with utilities from the official repository

1. Repositories and Software Sources

In Xubuntu, repository configuration is done using software-properties-gtk, accessible from the terminal or via the settings menu. Although it has Ubuntu roots, it works without heavy GNOME components and is the official tool for managing PPAs and updates in Xubuntu.

Native alternative for advanced users: direct editing of /etc/apt/sources.list and files in /etc/apt/sources.list.d/, combined with apt update and apt upgrade commands for total control without graphical interfaces.

⚠️ PPA warning: PPAs (Personal Package Archives) may contain newer software versions, but they can also break dependencies or conflict with official packages. Always verify the source and, if possible, prefer official Xubuntu/Ubuntu repositories. To remove a conflicting PPA: sudo add-apt-repository --remove ppa:name/ppa.

2. Lightweight Package Managers

For graphical package management, Xubuntu includes Synaptic, a powerful yet lightweight tool that does not depend on GNOME. For quick operations, apt in the terminal remains the most efficient and native option in the Debian/Ubuntu ecosystem.

2026 recommendation: Use apt for daily tasks and Synaptic only for advanced searches or visual dependency management. Avoid tools like Ubuntu Tweak or Computer Janitor, which are obsolete and not exclusive to Xubuntu.

2.1. Essential APT Commands for Xubuntu

Below are the basic commands for package maintenance in Xubuntu:


# Update package list
sudo apt update

# Upgrade installed packages
sudo apt upgrade

# Full upgrade (with dependency handling)
sudo apt full-upgrade

# Remove orphaned packages
sudo apt autoremove

# Clean downloaded package cache
sudo apt clean

# Search for a specific package
apt search package-name

# Install a local .deb package (with dependency resolution)
sudo apt install ./package.deb
2.2. Advanced APT Commands

# List upgradable packages
apt list --upgradable

# Show detailed information about a package
apt show package-name

# Show dependencies of a package
apt depends package-name

# Show packages that depend on another (reverse depends)
apt rdepends package-name

# Show version policy of a package (origin, priority)
apt policy package-name

# Download source code of a package (requires deb-src in sources.list)
apt source package-name

# Reinstall a package (useful if broken)
sudo apt install --reinstall package-name

# Simulate an operation (no real changes)
sudo apt upgrade --dry-run
2.3. Holding packages to prevent updates (apt-mark)

⚠️ Important: As with NVIDIA drivers, sometimes you need to hold a specific version of a package to prevent an update from breaking functionality. This is common with custom kernels, proprietary drivers, or software from external repositories. Use apt-mark hold to freeze a package and unhold to release it.


# Hold a package (it will not be updated)
sudo apt-mark hold package-name

# Release a held package
sudo apt-mark unhold package-name

# List currently held packages
apt-mark showhold

# Mark a package as automatically installed (so it will be removed with autoremove)
sudo apt-mark auto package-name

# Mark a package as manually installed (prevents autoremoval)
sudo apt-mark manual package-name
3. System Updates

The update-notifier in Xubuntu shows discreet panel alerts when security updates are available. For a minimalist experience, configure notifications only for critical patches, avoiding interruptions from minor updates.

Recommended configuration: Access software-properties-gtk → "Updates" tab → select "Only security updates" for a balance between stability and protection.

Full distribution upgrade: To jump to a new Xubuntu version (e.g., 24.04 → 26.04), it is recommended to use do-release-upgrade. Never use sudo apt full-upgrade to change versions, as it could break the system. Always back up first.

4. Language Support and Localization

Xubuntu manages languages using language-selector-gtk. Although it has GTK dependencies, it is the official tool and is optimized to run in lightweight environments like XFCE without overloading the system.

Recommended workflow: Settings → "Language Support" → install missing packages → apply changes → log out and back in for changes to take effect in all XFCE applications.

5. Native Cleaning and Optimization

For cleaning temporary files and cache, Xubuntu includes support for BleachBit. Although not exclusive to XFCE, it is the lightest and most functional option for maintenance without relying on obsolete GNOME tools like Computer Janitor.

Native alternative: Use apt clean, apt autoclean, apt autoremove and manual cleaning of ~/.cache/ for total control without additional software.

Advanced cleaning commands

# Clean downloaded package cache (only obsolete ones)
sudo apt autoclean

# Clean entire cache (all .deb files)
sudo apt clean

# Remove orphaned packages and purge their configuration files
sudo apt autoremove --purge

# Clean user cache (browsers, applications)
rm -rf ~/.cache/*

# Remove old log files (rotated logs)
sudo journalctl --vacuum-time=30d

# Show space used by APT cache
du -sh /var/cache/apt/archives
📚 Useful links

Commitment to excellence in free software.

Related articles
Home