My recipe (/etc/cron.daily/dnf-updates):
#!/bin/bash
readonly V=$(/usr/bin/dnf check-release-update --latest-only --version-only 2>&1)
[ -n "$V" ] && /usr/bin/dnf upgrade --security --assumeyes --releasever=$V
Shortcut:
/usr/bin/dnf upgrade --security --assumeyes --releasever=latest
Answer from ggrandes on serverfault.comamazon ec2 - Why is asking for DNF when YUM is specified? - Stack Overflow
Can't install yum package on Amazon Linux 2 when ansible is installed using python 3
packaging - How do I get a package (or a package version) that is available on modern Fedora (or other RH-oids) for Amazon Linux 2023? - Unix & Linux Stack Exchange
Is there a way to install microdnf or dnf on amazonlinux:2 ?
My recipe (/etc/cron.daily/dnf-updates):
#!/bin/bash
readonly V=$(/usr/bin/dnf check-release-update --latest-only --version-only 2>&1)
[ -n "$V" ] && /usr/bin/dnf upgrade --security --assumeyes --releasever=$V
Shortcut:
/usr/bin/dnf upgrade --security --assumeyes --releasever=latest
systemd timers replaced cron in AL2023, so ggrandes' answer did not work for me.
I was able to set up a systemd timer quite easily though.
First create /etc/systemd/system/dnf-security-upgrade.service with the following contents:
[Unit]
Description=Automatic security upgrades for dnf packages
[Service]
Type=oneshot
ExecStart=/usr/bin/dnf upgrade --security --assumeyes --releasever=latest
Then create /etc/systemd/system/dnf-security-upgrade.timer with the following contents:
[Unit]
Description=Timer for automatic security upgrades for dnf packages
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
Now, reload the systemd daemon with:
systemctl daemon-reload
Finally, run the following command to start the timer:
systemctl enable --now dnf-security-upgrade.timer
Hi everyone,
I'm pretty new to Fedora 33 and it's been rough so far. I'm unclear on a few things which are all seemingly interconnected.
1.) How to use difft. distro editions (can they be used on the same desktop environment?) because I'd like to use Fedora Workstation, Fedora Server, Fedora Cloud and Fedora IoT - do i basically need to install, enable all of these and just use them all on my main Fedora 33 Workstation desktop environment OR do I need to login to those instances with a difft. settings page? Same goes with the "Fedora Spins" -> I don't understand why I have to select the gear icon and choose "Cinnamon" for example.
2.) Which Amazon Web Services image I should download OR do I just install and enable from the Command line?I'm aiming to host and build a WordPress site on Amazon and have the Linux Fedora 33 distro. I'm going through a Udemy course on how to do this and the guy is using Ubuntu, of which Amazon has an EC2 Image already pre-built.
I'm seeing here that Fedora 33 actually may have an image already, but it looks like it's for the cloud. Again, I'm quite confused on how to use Fedora Cloud, Fedora Server and Fedora IoT operate together - given I'm mainly using Fedora 33 Workspace. Are those literally different desktop environments and everything? Do I basically have to install those things and then login to EITHER 1.) Workstation 2.) Cloud 3.) WorkStation 4.) IoT?
This is where I suppose I'm getting a bit hung up on Amazon. ALSO, I have a couple of virtual machines (VM's) that i'm playing with by way of Gnome Boxes. Since RHEL is one of them (just wanted to see if there were any differences at all b/w Fedora and RHEL), should I be using the RHEL image for my Amazon EC2 instance or just simply use Amazon Linux?
Fedora 33 Cloud Based Image (Is this for Fedora Cloud?): https://aws.amazon.com/marketplace/pp/prodview-ve75fkf6cqdxw?ref_=unifiedsearch
Can I use the RHEL image that's evidently already installed or will that not work for Fedora?
Do I use the Fedora 33 EFS tool? https://docs.aws.amazon.com/efs/latest/ug/using-amazon-efs-utils.html
Should I be using the conversion tool? https://docs.aws.amazon.com/SchemaConversionTool/latest/userguide/CHAP_Welcome.html
Below you'll find the results for when I run a <dnf search amazon> command. I have no idea which one of these to install - or should I be installing all of them?
[root@localhost ~]# dnf search amazon
Last metadata expiration check: 2:19:33 ago on Mon 08 Feb 2021 10:43:36 PM EST.
======================== Name & Summary Matched: amazon ========================
flight-of-the-amazon-queen.noarch : Flight of the Amazon Queen - Adventure Game
flight-of-the-amazon-queen-cd.noarch : Flight of the Amazon Queen - Adventure
: Game - CD version
perl-Net-Amazon.noarch : Framework for accessing amazon.com via REST
perl-Net-Amazon-EC2.noarch : Perl interface to the Amazon Elastic Compute Cloud
: (EC2)
perl-Net-Amazon-S3.noarch : Use the Amazon Simple Storage Service (S3)
perl-Shared-Examples-Net-Amazon-S3.noarch : Example modules for Net::Amazon::S3
: Perl tool kit
============================= Name Matched: amazon =============================
perl-Net-Amazon-EC2-Metadata.noarch : Retrieves data from EC2 Metadata service
=========================== Summary Matched: amazon ============================
clamz.x86_64 : Amazon Downloader
ec2-hibinit-agent.noarch : Hibernation setup utility for Amazon EC2
evolution-chime.x86_64 : Evolution plugin for Amazon Chime
fence-agents-aws.noarch : Fence agent for Amazon AWS
ghc-aws.x86_64 : Amazon Web Services (AWS) for Haskell
golang-github-mitchellh-goamz-devel.noarch : Golang Amazon Library
golang-github-ncw-acd-devel.noarch : Go library for accessing Amazon Cloud Drive
golang-github-smartystreets-aws-auth-devel.noarch : Signs requests to Amazon Web
: Services
libs3.i686 : C Library and Tools for Amazon S3 Access
libs3.x86_64 : C Library and Tools for Amazon S3 Access
nbdkit-S3-plugin.x86_64 : Amazon S3 and Ceph plugin for nbdkit
perl-AWS-Signature4.noarch : Create a version4 signature for Amazon Web Services
perl-VM-EC2.noarch : Perl interface to Amazon EC2
php-aws-php-sns-message-validator.noarch : Amazon SNS message validation
php-aws-sdk3.noarch : Amazon Web Services framework for PHP
pidgin-chime.x86_64 : Pidgin/libpurple protocol plugin for Amazon Chime
purple-chime.i686 : Libpurple protocol plugin for Amazon Chime
purple-chime.x86_64 : Libpurple protocol plugin for Amazon Chime
python3-boto.noarch : A simple, lightweight interface to Amazon Web Services
python3-s3transfer.noarch : Amazon S3 Transfer Manager
rubygem-fog-aws.noarch : Module for the 'fog' gem to support Amazon Web Services
s3cmd.noarch : Tool for accessing Amazon Simple Storage Service
s3fs-fuse.x86_64 : FUSE-based file system backed by Amazon S3
sendKindle.noarch : CLI tool for sending files via email to your Amazon Kindle
: device
[root@localhost ~]#
Fedora 33 is definitely not ready for the everyday average user - so I'm just trying to continuously bang my head against the wall and figure this shit out. Any help would be much appreciated!
Hi, I'm new to AWS and love how Lambda works. But building a few projects, I discovered the shenanigans of deploying native binaries on Lambda.
The testing cycle is long, build > deploy layer> test > repeat. But what's poking me is this Yum package manager. Most packages on Yum are old, unlike apt-get on Ubuntu. Also many times Yum breaks and makes me hunt for package dependencies. This generally forces me to build most packages from source (./configure, make, make install cycle).
Don't get me wrong, I really like the Serverless paradigm. But I feel that this entire cycle of spinning up EC2/docker and then building most packages from scratch is overwhelming for a beginner. While EC2 users can chose to deploy a Ubuntu server instead, Lambda doesn't offer such a choice. Bottom line, I feel Amazon Linux is big enough to stand on it's own right. A package manager like APT/YUM/DNF with latest trustworthy packages for Amazon Linux would go a long way.