How to Install and Uninstall php-yaml Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 15,2024

1. Install "php-yaml" package

This guide covers the steps necessary to install php-yaml on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-yaml

2. Uninstall "php-yaml" package

Please follow the guidance below to uninstall php-yaml on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove php-yaml $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-yaml package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-yaml
Priority: optional
Section: php
Installed-Size: 10
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 2.2.2+2.1.0+2.0.4+1.3.2-5+ubuntu18.04.1+deb.sury.org+10
Depends: php8.1-yaml
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/p/php-yaml/php-yaml_2.2.2+2.1.0+2.0.4+1.3.2-5+ubuntu18.04.1+deb.sury.org+10_amd64.deb
Size: 3340
MD5sum: f81dc0ccec4660189df3cac873f02be0
SHA1: c7d59a78a2ab005ebde4f5d6b7ecacad474209ef
SHA256: 0280588a07ecef05c2de8d0df26914a9aa97abc92d8a9923d0b7d357e06d878b
Description: YAML-1.1 parser and emitter for PHP
Description-md5: 1bfaf65b64a715c72224ee22bc952860

Package: php-yaml
Architecture: amd64
Version: 2.0.0+1.3.0-2build2
Priority: optional
Section: universe/php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PECL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 69
Provides: php7.2-yaml
Depends: php-common (>= 1:7.0+33~), phpapi-20170718, libc6 (>= 2.14), libyaml-0-2
Filename: pool/universe/p/php-yaml/php-yaml_2.0.0+1.3.0-2build2_amd64.deb
Size: 19460
MD5sum: 471fc6f262f6ac92a36cd2ac5e2bb9ce
SHA1: d6e0ee8c108dd9c0694e23fe774384f9942ddeba
SHA256: a80d6977c3cfe2df5a7e73e810a8ac366830be6dadf9134adcaf230db4161436
Homepage: http://pecl.php.net/package/Yaml
Description: YAML-1.1 parser and emitter for PHP
Description-md5: 1bfaf65b64a715c72224ee22bc952860