- 最新
- 投票最多
- 评论最多
Hello,
Thank you for your post. I launched a test instance using the al2022-ami-2022.0.20220419.0-kernel-5.15-x86_64 AMI and verified your report. The cronie package, which provides the crontab command, is not included in this AMI.
# rpm -qa |grep -i cron
crontabs-1.11-24.20190603git.amzn2022.noarch
I also checked the previous version of the AL2022 AMI and confirmed that the cronie package was not present there either. I would suggest you manually install the cronie and cronie-anacron packages that are both available from the amazonlinux repository.
yum install cronie cronie-anacron
Note, you can also make use of user data scripts[1] to install these packages at the time of launching instances.
In the meantime, I have opened an internal ticket with the Amazon Linux team to report that these packages are not included in the AL2022 images.
References:
[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前