Skip to content

Commit f7298a6

Browse files
committed
Add APK tabs to Useful Commands section
1 parent 0b13b1b commit f7298a6

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

docs/els-for-runtimes/php/README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ To check whether the package is installed and see its current version, use the f
149149

150150
<CodeTabs :tabs="[
151151
{ title: 'RPM', content: `sudo yum list installed | grep php` },
152-
{ title: 'DEB', content: `dpkg -l | grep php` }
152+
{ title: 'DEB', content: `dpkg -l | grep php` },
153+
{ title: 'APK', content: `apk info -v | grep alt-php` }
153154
]" />
154155

155156
</template>
@@ -160,14 +161,16 @@ To find out which groups/meta-packages are available for installation:
160161

161162
<CodeTabs :tabs="[
162163
{ title: 'RPM', content: `sudo yum group list` },
163-
{ title: 'DEB', content: `apt list -a | grep alt-php` }
164+
{ title: 'DEB', content: `apt list -a | grep alt-php` },
165+
{ title: 'APK', content: `apk search alt-php` }
164166
]" />
165167

166168
To get a list of packages of a specific group or meta package:
167169

168170
<CodeTabs :tabs="[
169171
{ title: 'RPM', content: `sudo yum groupinfo alt-phpXY` },
170-
{ title: 'DEB', content: `apt-cache showpkg alt-phpXY` }
172+
{ title: 'DEB', content: `apt-cache showpkg alt-phpXY` },
173+
{ title: 'APK', content: `apk info -R alt-phpXY` }
171174
]" />
172175

173176
Replace `XY` with a version of alt-php.
@@ -182,7 +185,10 @@ Replace `XY` with a version of alt-php.
182185
{ title: 'RPM', content: `sudo yum check-update` },
183186
{ title: 'DEB', content:
184187
`sudo apt-get update
185-
apt list --upgradable` }
188+
apt list --upgradable` },
189+
{ title: 'APK', content:
190+
`sudo apk update
191+
apk list --upgradable` }
186192
]" />
187193

188194
2. Update packages:
@@ -191,14 +197,16 @@ Replace `XY` with a version of alt-php.
191197

192198
<CodeTabs :tabs="[
193199
{ title: 'RPM', content: `sudo yum update alt-php*` },
194-
{ title: 'DEB', content: `sudo apt-get upgrade alt-php*` }
200+
{ title: 'DEB', content: `sudo apt-get upgrade alt-php*` },
201+
{ title: 'APK', content: `sudo apk upgrade 'alt-php*'` }
195202
]" />
196203

197204
* Update a specific version:
198205

199206
<CodeTabs :tabs="[
200207
{ title: 'RPM', content: `sudo yum groupupdate alt-phpXY` },
201-
{ title: 'DEB', content: `sudo apt-get upgrade alt-phpXY` }
208+
{ title: 'DEB', content: `sudo apt-get upgrade alt-phpXY` },
209+
{ title: 'APK', content: `sudo apk upgrade alt-phpXY` }
202210
]" />
203211

204212
Replace `XY` with a version of alt-php.
@@ -209,7 +217,8 @@ Replace `XY` with a version of alt-php.
209217

210218
<CodeTabs :tabs="[
211219
{ title: 'RPM', content: `sudo yum search alt-package-name` },
212-
{ title: 'DEB', content: `sudo apt search alt-package-name` }
220+
{ title: 'DEB', content: `sudo apt search alt-package-name` },
221+
{ title: 'APK', content: `apk search alt-package-name` }
213222
]" />
214223

215224
Replace `alt-package-name` with the specific name of the package you are looking for.

0 commit comments

Comments
 (0)