Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created November 6, 2015 04:26
Show Gist options
  • Save ELLIOTTCABLE/2d3fb94b41b424efb321 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/2d3fb94b41b424efb321 to your computer and use it in GitHub Desktop.
Er, upgrading ArchLinux via Dockerfile? idk.
FROM base/archlinux
RUN pacman --noconfirm -S --needed archlinux-keyring && \
pacman --noconfirm -S --needed openssl pacman && \
pacman-key --init && \
pacman-key --populate archlinux && \
pacman-key --refresh-keys && \
pacman-db-upgrade && \
pacman --noconfirm -Syy && \
pacman --noconfirm -S --needed archlinux-keyring && \
pacman --noconfirm -S --needed openssl pacman && \
pacman-db-upgrade && \
pacman --noconfirm -Suu && \
pacman --noconfirm -Rns $(pacman -Qdttq) && \
pacman --noconfirm -Scc && \
pacman-optimize && \
find /etc/ -type f -name '*.pac*' -exec rm {} \; && \
rm -rf /var/cache/pacman/pkg/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment