(
jdk12
AUR
,
jdk10
AUR
,
jdk10-openj9-bin
AUR
,
jdk7
AUR
,
amazon-corretto-16
AUR
,
jdk8-graalvm-bin
AUR
,
jdk16-graalvm-bin
AUR
,
jdk16-adoptopenjdk
AUR
,
jdk8-arm
AUR
,
liberica-jre-11-bin
AUR
,
jdk11-j9-bin
AUR
,
jdk11-jbr-xdg
AUR
,
jdk16-openjdk
AUR
,
jdk14-openjdk
AUR
,
amazon-corretto-18
AUR
,
jdk18-openjdk
AUR
,
jdk-android-studio
AUR
,
amazon-corretto-19-bin
AUR
,
jdk19-graalvm-bin
AUR
,
liberica-jre-11-full-bin
AUR
,
jdk19-graalvm-ee-bin
AUR
,
jdk13-openjdk-bin
AUR
,
liberica-jre-8-full-bin
AUR
,
jdk11-graalvm-bin
AUR
,
jdk-openj9
AUR
,
jdk11-graalvm-ee-bin
AUR
,
jdk12-openjdk
AUR
,
jdk11-dragonwell-standard-bin
AUR
,
jdk11-jetbrains-bin
AUR
,
jdk20-graalvm-bin
AUR
,
jdk17-graalvm-bin
AUR
,
jdk8-graalvm-ee-bin
AUR
,
amazon-corretto-20-bin
AUR
,
zulu-15-bin
AUR
,
jdk20-openj9-bin
AUR
,
zulu-13-bin
AUR
,
jdk8-dragonwell-extended-bin
AUR
,
jdk8-dragonwell-standard-bin
AUR
,
jdk11-dragonwell-extended-bin
AUR
,
jdk17-dragonwell-standard-bin
AUR
,
jdk11
AUR
,
jdk8-j9-bin
AUR
,
jdk7-j9-bin
AUR
,
jdk7r1-j9-bin
AUR
,
jdk8-dragonwell-extended
AUR
,
jdk13-openjdk
AUR
,
jdk15-openjdk
AUR
,
jdk21-graalvm-bin
AUR
,
jdk8
AUR
,
jdk17-zulu-prime-bin
AUR
,
jdk-openj9-bin
AUR
,
jdk11-openj9-bin
AUR
,
jdk17-jetbrains
AUR
,
zulu-jdk-fx-bin
AUR
,
jdk8-openj9-bin
AUR
,
jdk-lts
AUR
,
microsoft-openjdk-11-bin
AUR
,
microsoft-openjdk-17-bin
AUR
,
microsoft-openjdk-21-bin
AUR
,
jdk17-openj9-bin
AUR
,
liberica-nik-24-full-bin
AUR
,
jdk21-jetbrains-git
AUR
,
amazon-corretto-17
AUR
,
amazon-corretto-21-bin
AUR
,
amazon-corretto-22-bin
AUR
,
amazon-corretto-8
AUR
,
amazon-corretto-11
AUR
,
jdk-temurin
AUR
,
jdk21-temurin
AUR
,
jdk17-temurin
AUR
,
jdk11-temurin
AUR
,
zulu-21-bin
AUR
,
zulu-17-bin
AUR
,
zulu-11-bin
AUR
,
zulu-8-bin
AUR
,
liberica-jdk-8-full-bin
AUR
,
liberica-jdk-21-full-bin
AUR
,
liberica-jdk-full-bin
AUR
,
jdk8-temurin
AUR
,
mandrel-bin
AUR
,
mandrel24-bin
AUR
,
zulu-17-fx-bin
AUR
,
liberica-jdk-17-full-bin
AUR
,
liberica-jdk-11-lite-bin
AUR
,
liberica-jdk-11-full-bin
AUR
,
liberica-jdk-11-bin
AUR
,
jdk17-graalvm-ee-bin
AUR
,
jdk21-graalvm-ee-bin
AUR
,
jdk22-graalvm-ee-bin
AUR
,
jdk20-graalvm-ee-bin
AUR
,
jdk8-perf
AUR
,
jdk22-graalvm-bin
AUR
,
java-openjdk-bin
AUR
,
jdk
AUR
,
jdk17-jetbrains-bin
AUR
,
jdk19-openjdk
AUR
,
zulu8-fx-bin
AUR
,
zulu11-fx-bin
AUR
,
zulu17-fx-bin
AUR
,
zulu21-fx-bin
AUR
,
zing-21-bin
AUR
,
zing-8-bin
AUR
,
jabba-bin
AUR
,
jdk24-graalvm-ea-bin
AUR
,
jdk21-jetbrains
AUR
,
jdk21-jetbrains-bin
AUR
,
jre-jetbrains
AUR
,
jdk-openjdk-wakefield
AUR
,
jdk21-openj9-bin
AUR
,
java-openjdk-ea-bin
AUR
,
jdk-openjdk
,
jdk11-openjdk
,
jdk17-openjdk
,
jdk21-openjdk
,
jdk8-openjdk
)
TL;DR
Upgrade using
aur/yay
might take very long and works inefficiently.
Upgrade using
aur/paru
requires the
-d
flag.
This is not my fault.
Note to the lovers of AUR helpers : It looks like dependency resolution is a complex topic. Despite all package relations being properly declared in the Flutter packages, most AUR helpers seem to have trouble resolving the dependency chain between the package bases
aur/flutter
and
aur/flutter-artifacts-google-bin
. This is not my fault and I cannot do anything about it.
It looks like the initial installation works fine using
aur/paru
. Sadly
aur/paru
does not reach at building updates for the package without additional flags. Please use
paru -Syud
(whereas the
-d
is the relevant flag) to upgrade the package.
On the other hand
aur/yay
properly reaches at both installing and updating this package, even though it builds the package 15 times (!!!) again and again.
If you use
aur/paru
, consider to simply execute
pacman -R flutter && pacman -Rns flutter
to clean up the previous installation of both package bases.
https://github.com/Jguer/yay/issues/2413
https://github.com/Morganamilo/paru/issues/1173
If you build both package bases using
makepkg -sfC
and later on install all build outputs using
pacman -U
, both the installation and the updates work like a charm.
I'm very sorry for the inconvenience, but sadly there's nothing I can do about this.
Huge update to the Flutter AUR package :
The previous implementation basically did a user installation of Flutter - downloaded the custom Dart SDK, CI artifacts from Chromium CI and had to be kept in user R/W access in order to have the Flutter Cache Manager working.
These times are now over - a clean and (almost) completely rewritten PKGBUILD which now uses clean dependency declarations, system Dart and Gradle and for sure no more user R/W installation directory.
This AUR entry is now a split package. Installing
aur/flutter
will still bundle the entire toolchain you knew from before. The other way round, if you don't need everything - e.g. when depending on Flutter as a build dependency in another package, you can choose to only depend on what you need.
The following split packages are available :
flutter
: meta package containing all other split packages
flutter-common
: the common files for Flutter needed for all use cases
flutter-devel
: your option of choice as a developer - ships the Flutter tool and all required templates to e.g. create a new project
flutter-tool
: The pure Flutter tool. Use as
depends
to build your package.
flutter-target-linux
: The Flutter Linux build files. Use as
depends
to build your package.
flutter-target-web
: The Flutter web build files. Use as
depends
to build web apps (e.g.
fluffychat-web
does this).
flutter-target-android
: The Flutter Android build files. Use if you want to develop Android apps.
flutter-gradle
: The Flutter Gradle wrapper. Populated from system Gradle.
flutter-intellij-patch
: a tiny patch to make the IntelliJ Flutter plugin work with the new package.
flutter-material-fonts-google-bin
: Mandatory fonts package, planned to have a system-installed drop-in replacement soon.
flutter-engine-common-google-bin
: Shared part of the Flutter engine - downloaded from Google servers.
flutter-sky-engine-google-bin
: Flutter sky engine - downloaded from Google servers.
flutter-engine-linux-google-bin
: Linux part of the Flutter engine - downloaded from Google servers.
flutter-engine-web-google-bin
: Web part of the Flutter engine - downloaded from Google servers.
flutter-engine-android-google-bin
: Android part of the Flutter engine - downloaded from Google servers.
flutter-gradle-google-bin
: The Flutter Gradle wrapper - downloaded from Google servers.
flutter-dart-google-bin
: The Flutter original Dart SDK - downloaded from Google servers. This is helpful if the
extra/dart
package is not available in the right version on your distro or remix.
Stay tuned for non google-bin versions of the engine, they are in coming !
Since almost everything is written from scratch and heavy patches are applied to use the system packages as dependencies, there might still be bugs occurring. Please report them otherwise I can't fix them !
they put Dart in the Flutter archive for some reason
Yes, the reason is that breaking changes to the Dart SDK are landed with the corresponding fixes to the Flutter SDK. Also, you cannot "remove it" without significantly altering the Flutter tooling. The Flutter CLI tool ensures that the pinned version of the Dart SDK is present in its binary cache.
If you want to use a version of Flutter without depending on Flutter's pinned version of the Dart SDK, you would need to maintain a separate fork of the Flutter SDK, that tracks the breaking changes of the Arch Dart package, and has an updated Flutter tool that doesn't assume it controls the Dart installation.
The proper way to avoid the
/opt/flutter/bin/cache
permission error is to add the current user to the
flutterusers
group created by the flutter package. The flutter directory is owned by the root user and the
flutterusers
group.
usermod -aG flutterusers <user>
I'm getting a new error now, though:
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Building Linux application...
Unable to generate build files
I got permission errors when running flutter:
$ flutter
mkdir: cannot create directory '/opt/flutter/bin/cache': Permission denied
I "fixed" it by running sudo chmod a+rw -R /opt/flutter