Pamac CLI


Hi, with pamac 7.3.0 there are new features in cli:

  • the cli honors pamac preferences by default so if you enabled AUR no need to add --aur option
  • if AUR support is enabled, checkupdates action now also tells you the AUR packages marked as out of date
  • if AUR support is enabled, search action now shows you results in databases and AUR at the same time


Thanks for the updates!

Is adding support for update for *-git packages something you are considering?



not sure it’s always good: sometimes too many results
add option -r for only repo if AUR enabled ?



Oops, I totally forgot but YES it’s also a featured of v7.3.0:

  • use checkupdates --aur --devel options to see vcs packages updates


On new installs with pamac-mirrorlist.timer enabled (it’s enabled by pamac), the mirror is likely changing every week. So -Syyu is probably the better default command unless the user knows her mirrorlist is not being updated regularly.



Been playing around with pamac cli and love the checkupdates feature.
With pamac, what’s the difference with update and upgrade?
Which is the recommended one to use?

1 Like


None. Both are synonyms for the exact same command.



Thanks for the quick reply.



hi have option for make this pamac build --adeps test ?

Best Regards



asdeps not exists (doc and code) with pamac-cli :disappointed_relieved:
you can only run after install

pacman  -D --asdeps  packageName


1 Like


Not sure if this is a dumb question or been answered somewhere else, if so I apologize in advance. My backup strategy is to backup my home folder on AWS S3 via s3cmd. Obviously this is only backing up my home folder, not installed applications. Is it possible to run pamac list -a and pamac list -m and save output to a .txt file, then later install the packages on those lists similar to running sudo pacman -S - < pkglist.txt? (I have a lot of AUR packages) I know I can use timeshift for this, but I’m on a laptop with one hard drive and never remember to plug in an external to run scheduled backups. Thanks in advance for any advice.



Pamac uses separate command to install aur packages and repo packages. If you wish to install aur packages and repo packages en masse from a list, yay might be better option than pamac. Else, separate the aur packages to a separate list and run two commands, pamac install for one list and pamac build for the other.



Hey, thanks for the response. Seeing now that I meant -i, not -a.

I meant more like can I use:
pamac list -i > pkglist.txt
Then run
pamac install - < pkglist.txt
(Then repeat for aur packages)
pamac list -m > aurlist.txt
pamac build - < aurlist.txt

Is this correct syntax?



hi @guinux, I hope that pamac-cli can add the ability to install packages as dependencies. This is really useful to avoid the system having a pile of redundant packages.
Thanks for the effort on this tool.

1 Like


To add to wish list:
I would like to see a -G ‘get PKGBUILD’ options and/or -E ‘edit’ options

1 Like


I have had my first look at pamac-cli since yaourt is going to disapear. What I discovered is that both pamac update (pacman -S) and pamac upgrade (pacman -Syu) do include the AUR update.

I need to exclude one package (Monitorix) from AUR because the update will break a dependency on my install (but the old install still works).
Without removing this package from update nothing will update so I have to use good old pacman to update without AUR and yaourt or pamac-GUI to exlude the AUR package in question from the update.

So can I exclude one package from being updated in pamac-cli?
Can I update only the Repos?

This topic is pamac-cli specific because it updates both the repos and AUR.



Use pamac clone to download a PKGBUILD.
Editing PKGBUILD is an option which is always ask in cli.



First, update and upgrade actions do the same.
To ignore a specific package from upgrade (repos or AUR) use --ignore option.
To never upgrade AUR packages you can disable it in pamac.conf



I confused pamac upgrade/update with pamac install - sorry about that.

So I assume pamac update/uprgade is doing pacman -Syu ?

The ignore option worked just fine I did a

pamac update --ignore chronograf

and it worked just fine -thanks!

1 Like


pamac is not a frontend for pacman