DNF no longer has sufficient resources on my PI 3, after a recent update,
to work anymore.
The slooooooow creap of fixes, patches and related support elements to make
ARM a well supported option on Fedora is taking its toll.
I know microdnf has been discussed a few times, but here is another
alternative which worked for me.
Another way of dealing with dnf memory issues is to add swap space using a
swap file on my Raspberry PI 3+
This corrects a memory deficit of about 200MB on my PI 3's working set of
physical RAM pages, which kicks me out of the remote shell.
Here is the steps I used to start using dnf again:
I decided I would put the swap file off the /mnt so I made a directory for
Then I made the swapfile I picked 5G, if you don't have that sort of space
you might need to experiment with an appropriate size, maybe 2G?
fallocate -l 5G /mnt/swapfiles/swpf1
An Alternative is to use dd to make the swp if you happen to be
running a slimmed down installation and do not have fallocate
dd if=/dev/zero of=/mnt/swapfiles/swpf1 bs=1024 count=5048576
Set the access rights on the swapfile like so:
chmod 600 /mnt/swapfiles/swpf1
Tell Linux about the swapfile:
Activate the swapfile:
I only use the swap file when I am loading or patching with DNF, so I
did not put the swapfile configuration into my fstab file.
So I just execute a swapon before I do a "dnf update".
My reason for doing so is to eliminate any unwanted writes to the
sdcard that are not absolutely required.
Which helps extend the life of the sdcard.
If you want to add the swapfile so that it is always on, you have to
add a line to the /etc/fstab file like so:
/mnt/swapfiles/swpf1 swap swap defaults 0 0
i hope you found this helpful. I know I did. :-)
On Fri, Jan 20, 2023 at 3:39 PM Irene Diez <idiez(a)redhat.com> wrote:
I'm trying to install Fedora-Minimal-36-1.5.armhfp.raw on my raspberry pi
2B. Installation was a success but the device runs out of memory when
trying to install anything via dnf and I get kicked out of the shell.
I've followed the installation instructions in
which specify that this model is supported since Fedora 29; so, is it there
anything that I'm missing for Fedora to work?
arm mailing list -- arm(a)lists.fedoraproject.org
To unsubscribe send an email to arm-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
Do not reply to spam, report it: