Coder Social home page Coder Social logo

eatsu / pac-wrapper Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 56 KB

A pacman wrapper that provides intuitive syntax similar to dnf, apt, zypper, etc.

License: MIT License

Shell 98.36% Makefile 1.64%
pacman archlinux apt dnf zypper pacman-wrapper

pac-wrapper's Introduction

Pac

AUR package

Pac is a pacman wrapper that provides intuitive syntax similar to dnf, apt, zypper, etc.

With pac you don't need to memorize the non-intuitive options like -Rs, -Si, -Ss; you can just type remove, info, search, respectively.

Pac also supports Tab completion for Bash and Zsh.

Note: Pac itself is not an AUR helper, though it can wrap an AUR helper that supports pacman's options. See Configuration.

Installation

The pac-wrapper package is available in AUR.

To install from source, run make install.

Examples

Command Description
pac Upgrade installed packages.
pac in foo
pac install foo
Install package foo and its dependencies.
pac rm foo
pac remove foo
Remove package foo and its dependencies.
pac if foo
pac info foo
Show information about package or group foo.
pac se foo
pac search foo
Search package names and descriptions with keyword foo.
pac mark -d foo
pac mark --asdeps foo
Mark package foo as dependencies.
pac arm
pac autoremove
Remove dependencies that are no longer required by any installed package.
pac ls -ef
pac list --explicit --foreign
List explicitly installed foreign packages (e.g. AUR packages).

Run pac --help for more information.

Configuration

By default, pac wraps pacman. To wrap another pacman-compatible program, set the environment variable PAC_PACMAN.

For example, to wrap paru instead of pacman, add

export PAC_PACMAN='paru'

to your ~/.bash_profile (or $ZDOTDIR/.zshenv for Zsh) and reload your shell.

License

MIT

pac-wrapper's People

Contributors

eatsu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ved-un

pac-wrapper's Issues

Improve `pac info <group>` output

It would be nice if we could check whether the group's packages were installed or not, like:

$ pac info kde-system
kde-system dolphin [installed]
kde-system kcron
kde-system khelpcenter
kde-system ksystemlog [installed]
kde-system partitionmanager [installed]

Additional commands/options that may be useful

Commands

  • check -- check that package files exist (pacman -Qk)
  • checkdb -- check the database validity (pacman -Dk)
  • filesearch [-x|--regex] -- search package files (pacman -F)
  • repolist -- view a list of packages in a repo (pacman -Sl)
  • changelog -- view the changelog of a package (pacman -Qc)
    • This may be almost useless because in reality most packages don't provide changelog, afaik.
  • download -- download packages (pacman -Sw)
    • Is it really useful to just download packages?

Options

  • list {-t|--unrequired} -- list packages not required by any package
  • list {-u|--upgrades} -- list outdated packages
  • {-q|--quiet} -- show less information -- for
    • install
    • remove
    • autoremove
    • search
    • files
    • ...

Support `-U`

The question is whether it can be supported with install or requires a new command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.