r/AerynOS • • Nov 01 '26

Moss CLI changes have landed

Hi all,

As foreshadowed in previous stream update notes, the refactored Moss CLI has now landed.

Package operations, including add, remove, info are now sitting under the pkg subcommand. In particular, moss pkg add replaces moss install.

The overarching idea is that you are explicitly adding/removing packages to/from the underlying system-model that moss resolves from.

Similarly, Repository operations sit under the repo subcommand, where you are also explicitly modifying (add/remove and enable/disable) repositories in the system-model that moss resolves from.

You can use moss pkg -h to see the supported pkg subcommands, and moss repo -h to see the supported repo subcommands.

Note that we have set up aliases for some of the commands, such that moss pkg add has the alias moss pad, and moss pkg remove has the alias moss prm. For moss pkg info, the alias is moss pif.

The documentation lives here: https://aerynos.com/users/system-management/moss-state-management/

The CLI changes you are seeing are merely one part of the refactor work we are kicking off for moss.

HTH.

27 Upvotes

15 comments sorted by

4

u/TheHarveyBirdman 29d ago

sudo moss sync -u was already not going to be obvious to many and now installing and removing packages is just as confusing. It feels like this is making moss less intuitive to use. How is this an improvement from a users perspective?

1

u/ermodk 29d ago

The goal is to expose how moss' system-model works as described above.

6

u/TheHarveyBirdman 29d ago

A user wants to install / remove / update packages and then use the things they have installed. So from an end user perspective using different commands to "expose how moss system-model works" is a big who cares. It isn't intuitive and yet it could be and for two of those three it was until now.

Sorry but I fail to understand why anyone would think this was a good change.

4

u/Xoph-is-Fire 29d ago edited 29d ago

Have to agree. Being a user that is relatively newer to Linux than others (~5 years server/desktop) this is far more confusing that what I saw with apt, pacman, or any other system. As someone who has had to deal with usability design/dev, this is not it.

I think this will confuse and when that happens, users often just move on. I am not trying to be an ass to the aerynOS team I think you guys do a great job. Just trying to share a different perspective that sometimes when working so close on something, can be missed.

edited for spelling

1

u/milomak 28d ago

i have to say i lean more towards this

i can see why from a technical pov you might want to have moss pkg add/remove/etc. if it had been the initial default,

i imagine there would have been many asking why it can't be simply moss install/remove/etc becuase that is more user-friendly and intuitive

3

u/Sothis6881 29d ago

I read through the documentation and have a question. Can you help me understand the reasoning behind requiring the additional --update flag for the "sudo moss sync" command? I would think the user would want to update the repository info before upgrading the system by default, or are there other sync actions that I'm not aware of?

2

u/ermodk 29d ago

It's a convenience thing. You can run sudo moss repo update && sudo moss sync or you can run sudo moss sync -u. They are equivalent.

2

u/Sothis6881 29d ago

But that's kind of my point...wouldn't it be more practical to include updating the repo by default when running sudo moss sync?

3

u/ermodk 29d ago edited 29d ago

Sync as an operation syncs against the currently active repositories in the system-model.

This is a design choice in the sense that this is how the sync operation is defined.

Whether you declare that system-model implicitly with imperative pkg add/remove or repo add/remove/update/enable/disable operations, or whether you declare it via editing an explicit /etc/moss/system-model.kdl file is immaterial; modifying your system-model is orthogonal to resolving against it.

This is also why we separate pkg add/remove and moss repo add/remove/update/enable/disable from sync; conceptually, you manipulate your system model, then you sync to that system-model, which simply means that moss resolves what should (and should not) be installed in each state / filesystem transaction.

This is also why -u is a convenience flag to sync and not part of the sync operation itself.

2

u/IntelligentDentist51 28d ago

i think here is the thing.

if i wnt to upgrade my system, i think the assumption should be there i want to do that from the latest files i have in my repo.

i am a long time debian user and i think your approach stems from a a very careful way they have positioned their distro. and by default then the following distros have - ubuntu/mint etc

so i think a distro like debian is by purpose very specific that these 2 steps are seperate. because as a system admin for some reason you might want to do this.

but i'm pretty sure that most users on debian/ubuntu run sudo apt update && sudo apt dist-upgrade or some variant. I find it tiring as a person that runs sid because when i want to dist-upgrade, i would like the assumption that yes do that frm the latest repos.

and so file your test subjects are individual end-users, perhaps have a plan for an enterprise version where these kind of things make sense. but you are not testing with them.

btw i installed aerynos as one of 5 linux distros and win 11 on the same partition (on my laptop the root partition is on an external drive). installed on both using chroot and moss.

i am making these cmments as someone how is liking this distro. and thinks it can go somewhere.

i use debian sid as my main driver, fedora follows, solus linux, arch linux and aerynos. win11 if i really have to.

5

u/Xoph-is-Fire 29d ago

Not going to lie as I truly like the idea of aerynOS and moss, but this seems very convoluted. It looks more painful than pretty much any of the cli package management tools I have used and less intuitive than what moss already had. I am sure you have your reasons, but not personally a fan.

6

u/Gnat008 29d ago

I agree, this seems like really poor and confusing UX/UI. Those of us who are distro maintainers know what packages are, but from what I've seen, a lot of users don't, or don't care, and abbreviating it to `pkg` doesn't help. I would be willing to bet that two of the most used package manager commands are to install and remove software, and putting that behind another subcommand makes it more annoying to manage what software is installed. This change seems like a pretty significant miss.

6

u/ResponseSea6233 29d ago

Agree 100%. There is no need to have it set like this. Coming from back in the UNIX days, this even makes a lot of what we had to run look sane. Just not a fan of this move. I really like what AerynOS is doing, but this is not something I agree with. It is not user-friendly in any way, and from a technical standpoint, I do not see a good reason to do so. It just brings complexity for complexity sake.

1

u/Merthod 24d ago

Yeah, no thanks. I'm so confused.

1

u/Fenerism 1d ago

As someone that just found this distro and appreciates everything else about it, this is too convoluted and wordy for such common commands :/