yay -Yc offers to remove recently updated packages

Created on 11 Apr 2018  路  8Comments  路  Source: Jguer/yay

Yay 5.657 sometimes offers me to delete some critical packages, when I run yay -Yc.

For example, on my Raspberry Pi 3B with Arch Linux, when I'm updating linux-raspberrypi, which obviously contains kernel, after it running the command will offer me to delete that package with kernel.

Most helpful comment

I have dabbled a bit in this myself. I was trying to get some sort of testing working. I have a pkgbuild that sets up a local AUR website with a predictable database. This is good for testing resolving Dependencies via the rpc but not much else.

Ideally We should be able to set up a bunch of dud packages that basically do nothing apart from have the correct meta data for testing. Combine this with a copy of the current Pacman database and we have a full never changing set of packages. Then we simply have all the packages in cache so Yay does not need to fetch them.

This gives us free reign to control everything and has no need for an internet connection. This lets us know the exact state of what should be installed, what should be explicit, ect.

Then use mikkeloscar's Arch docker with Travis and we have automated testing.

All 8 comments

can you confirm its marked as explicit? yay -Qi linux-raspberrypi

@Morganamilo you talking about it?
Install Reason : Installed as a dependency for another package

I also installed some gvfs packages on PC Arch Linux by myself, but yay offered me to delete them too, until I removed them and installed again.

Looks like some stuff is marked wrong:

pacman -Qqg base base-devel | sudo pacman -D --asexp linux-raspberrypi linux-raspberrypi-headers raspberrypi-bootloader raspberrypi-bootloader-x raspberrypi-firmware -

should mark a bunch of stuff as explicitly installed and catch most things if they are wrong. If you notice anything else that should be explicit mark them too.

@Morganamilo Thanks for help. I'll close issue now.

I just marked everything I had on -Yc as explicit since I usually clean unneeded dependencies.
yay -D --asexplicit $(pacman -Qtdq)

I really need to transition yay to container based testing to avoid this in the future. It's going on my TODO list for when I have a bit more time.

I have dabbled a bit in this myself. I was trying to get some sort of testing working. I have a pkgbuild that sets up a local AUR website with a predictable database. This is good for testing resolving Dependencies via the rpc but not much else.

Ideally We should be able to set up a bunch of dud packages that basically do nothing apart from have the correct meta data for testing. Combine this with a copy of the current Pacman database and we have a full never changing set of packages. Then we simply have all the packages in cache so Yay does not need to fetch them.

This gives us free reign to control everything and has no need for an internet connection. This lets us know the exact state of what should be installed, what should be explicit, ect.

Then use mikkeloscar's Arch docker with Travis and we have automated testing.

Maybe you should use systemd-nspawn containers for non-Travis testing. There is one useful flag:

-x, --ephemeral
           If specified, the container is run with a temporary snapshot of its file system that is removed immediately when the container terminates.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

GermanG picture GermanG  路  4Comments

mmirate picture mmirate  路  3Comments

bazeeel picture bazeeel  路  4Comments

torvic9 picture torvic9  路  4Comments

drrlvn picture drrlvn  路  4Comments