Install this version:
emerge -a =dev-php/composer-2.10.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-php/composer-2.10.2
Or alternatively:
emerge --autounmask-write -a =dev-php/composer-2.10.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.10.2 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Dependency Manager for PHP"
HOMEPAGE="https://getcomposer.org/"
SRC_URI="https://github.com/composer/composer/releases/download/${PV}/composer.phar -> ${P}.phar"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND=">=dev-lang/php-7.2:*[cli,phar]"
S="${WORKDIR}"
src_unpack() {
cp "${DISTDIR}/${P}.phar" "${S}/composer.phar" || die
}
src_install() {
newbin composer.phar composer
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | composer-2.10.2.phar | 3639279 bytes | https://github.com/composer/composer/releases/download/2.10.2/composer.phar |