This command used to wrap the package management. It is having three options. They are pkg-install, pkg-ensure, pkg-remove. This allow the user to install in any system. It manage the package Manager functions. It suitable to work with Ubuntu and centOS.
This help command guides the user to install,ensure,remove package management. This allows installation, ensure, remove. The help command for package Manager is shown below.
ptconfigure packagemanager help
After inputs the above command, it starts functioning to wrap. It catechesis the functions in the screenshots.
kevell@corp:/# ptconfigure PackageManager help
******************************
This command allows you to use a Package Management wrapper.
PackageManager, package-manager, packagemanager, package-mgr, pkgmgr
- pkg-install
Installs a Package through a Package Manager
example: ptconfigure package-manager pkg-install --package-name="mysql" --packager-name="apt"
- pkg-ensure
Installs a Package through a Package Manager
example: ptconfigure package-manager pkg-ensure --package-name="mysql" --packager-name="apt"
- pkg-remove
Removes a Package through a Package Manager
example: ptconfigure package-manager pkg-remove --package-name="mysql" --packager-name="apt"
A package manager wrapper that will allow you to install packages on any system
------------------------------
End Help
******************************
The following are the alternative parameters that can be defined in declarations:
PackageManager, package-manager, packagemanager, pkgmgr, package-mgr.
Installation includes installation of PackageManager required to make the installation in an updated version. It is a manifest process to install PackageManager module under ptconfigure. PackageManager by just using the command given below,
ptconfigure PackageManager Install
After vitalize the command it will catechize input.
When the user input as yes automatically it will install PackageManager with checking from the system. If not exit the installation. The following screen shot demonstrate PackageManager and its functions.
kevell@corp:/# ptconfigure package-manager pkg-install --package-name="ssh" --packager-name="apt"
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
ssh
0 upgraded, 1 newly installed, 0 to remove and 87 not upgraded.
Need to get 0 B/1,106 B of archives.
After this operation, 29.7 kB of additional disk space will be used.
Selecting previously unselected package ssh.
(Reading database ... 198126 files and directories currently installed.)
Preparing to unpack .../ssh_1%3a6.6p1-2ubuntu2_all.deb ...
Unpacking ssh (1:6.6p1-2ubuntu2) ...
Setting up ssh (1:6.6p1-2ubuntu2) ...
[Pharaoh Logging] Adding Package ssh from the Packager Apt executed correctly
******************************
Apt Modifications:
--------------------------------------------
Package Manager: Success
------------------------------
Apt Mods Finished
******************************
Pkg ensure a system service is running. In case of not running start it else don’t attempt. Through this command the user can identify whether the system is working or idle. Simple commands are easy to handle. The following command used to ensure through package manager.
ptconfigure PackageManager ensure
kevell@corp:/# ptconfigure package-manager pkg-ensure --package-name="mysql" --packager-name="apt"
[Pharaoh Logging] Package mysql from the Packager apt is already installed, so not installing
******************************
Apt Modifications:
--------------------------------------------
Package Manager: Success
------------------------------
Apt Mods Finished
******************************
kevell@corp:/# ptconfigure package-manager pkg-ensure --package-name="ssh" --packager-name="apt"
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
ssh
0 upgraded, 1 newly installed, 0 to remove and 87 not upgraded.
Need to get 0 B/1,106 B of archives.
After this operation, 29.7 kB of additional disk space will be used.
Selecting previously unselected package ssh.
(Reading database ... 198126 files and directories currently installed.)
Preparing to unpack .../ssh_1%3a6.6p1-2ubuntu2_all.deb ...
Unpacking ssh (1:6.6p1-2ubuntu2) ...
Setting up ssh (1:6.6p1-2ubuntu2) ...
[Pharaoh Logging] Adding Package ssh from the Packager Apt executed correctly
******************************
Apt Modifications:
--------------------------------------------
Package Manager: Success
------------------------------
Apt Mods Finished
******************************
Pkg remove command used to remove a package from package manager. The package manager first checks the package want to remove from package manager. Then it ask for confirmation. Then use the remove option.
ptconfigure PackageManager remove