Lin Basics

Essential commands and concepts for Lunar's package manager

Last updated: November 2, 2025

Learn the essential commands for managing packages with Lunar's lin tool.

What is Lin?

Lin is Lunar Linux's package management tool. It handles:

  • Installing packages from source
  • Updating packages
  • Managing dependencies
  • Optimizing builds for your system

Basic Commands

Search for Packages

Search for available packages:

lin search package-name

Example:

lin search firefox

Install Packages

Install a package:

lin install package-name

Example:

lin install vim

Update System

Update all installed packages:

lin update

Remove Packages

Remove an installed package:

lin remove package-name

List Installed Packages

See all installed packages:

lin list

Package Information

Get detailed information about a package:

lin info package-name

This shows:

  • Description
  • Version
  • Dependencies
  • Build options

Build Optimization

Lin compiles packages optimized for your system.

Compiler Flags

View current compiler flags:

lin flags

CPU Optimization

Lin automatically detects and uses optimal CPU flags for your processor.

Dependencies

Lin automatically handles dependencies:

lin install package-name

This installs the package and all required dependencies.

Advanced Usage

Hold Packages

Prevent a package from being updated:

lin hold package-name

Unhold Packages

Allow updates again:

lin unhold package-name

Next Steps

  • Explore advanced package management techniques
  • Learn about managing system services