BuycPanel Blog

BuycPanel Blog

Latest news and updates

How do you use the Command Line to Manage the Software Packages in SCL?

Posted by Allura on 16 05 2019.

Introduction
In this documentation we will discuss on how a user can use the scl utility to manage software packages in a Software Collection Library (SCL) environment with the help of the command line.The SCLs for PHP versions are used by EasyApache 4 (EA4), allowing multiple concurrent software packages to reside on the file system of the user. If a user runs multiple websites requiring different PHP versions, he can use this utility. To know more about SCLs, one can read our Introduction to EasyApache 4 documentation.The scl Utility
The scl utility makes a use of this following syntax:scl option action library ‘command’This utility uses certain variables with its possible values. They are:Variable: option (the desired option).Possible value: -l, –list — Lists the server’s available software package collections, and-h, -help — Displays the scl  utility’s help output.Example: -lVariable: action (the action to perform).Possible value: enable, register and deregister.Example: enableVariable:…

Introduction

In this documentation we will discuss on how a user can use the scl utility to manage software packages in a Software Collection Library (SCL) environment with the help of the command line.

The SCLs for PHP versions are used by EasyApache 4 (EA4), allowing multiple concurrent software packages to reside on the file system of the user. If a user runs multiple websites requiring different PHP versions, he can use this utility. To know more about SCLs, one can read our Introduction to EasyApache 4 documentation.

The scl Utility

The scl utility makes a use of this following syntax:

scl option action library ‘command’

This utility uses certain variables with its possible values. They are:

  1. Variable: option (the desired option).

Possible value: -l, –list — Lists the server’s available software package collections, and

-h, -help — Displays the scl  utility’s help output.

Example: -l

  1. Variable: action (the action to perform).

Possible value: enable, register and deregister.

Example: enable

  1. Variable: library (the SCL).

Possible value: A valid PHP software collection and an absolute filepath to the software collection.

Example: ea-php70

  1. Variable: ‘command’ (the command to run in the SCL environment).

Possible value: For a list of valid commands, run the php –help or pecl –help commands.

Example: ‘php -m’

Example

If a user desires to view the ea-php70 SCL modules, he can run the following command:

scl enable ea-php70 ‘php -m’

The output will resemble like [PHP Modules], like:

bcmath

calendar

Core

ctype and many more.

Conclusion

All information on how to use the command line to manage the software packages in SCL is outlined in this review.