Menu
This tool is usually not installed by default but you can install it in Debian, Ubuntu, Linux Mint and other Debian-based Linux distributions using this command: sudo apt install aptitude You can use aptitude to search for packages from the command line, like this.
CPAN or also known as Comprehensive Perl Archive Network is a repository for modules written in Perl. Currently, there are 177,000+ published modules which can be downloaded and used by the Perl software developers or by the system/network administrators. Today we are going to show you how to install Perl modules manually or by using CPAN on your Linux.
Manual Perl module installation
There are different ways for installing Perl modules. One of the ways is by building the module from source. This way is useful when a single module with no dependencies is required to be installed. First of all, install the Perl language and the dependencies if they are not already installed on your server.
For Ubuntu Cloud VPS:
For CentOS Cloud VPS:
Once the required software is installed, go to http://search.cpan.org/ and search the module you would like to install. Let’s say you would like to install the
DBD::mysql
module. Download and unpack the source:Build and install the Perl module using the following commands:
And that’s it. The module has been successfully installed. Please note that this way of installing Perl modules is not recommended as during the installation no dependencies are being installed. In other words, if the module has dependencies it will not work and you will need to manually install all of them to fix this. Alternatively, you can use your system package manager to install the module and all its dependencies automatically or use the
cpan
command.Install Perl modules using CPAN
The CPAN perl module should already be installed on your Linux cloud server by default. In case it is not installed, go ahead and install it. To run cpan you can use the following command:
If this is the first time you are using cpan you will need to proceed with the basic configuration by answering a few simple questions.
The basic syntax for installing modules is the following:
To install the same Perl module we installed before you can use the following command:
This will also ensure that all module dependencies will be properly installed.
For more installation options as well as basic usage of the module you can check the module’s page at http://search.cpan.org/. For example, the page for the module we installed would be http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql/INSTALL.pod.
To learn how to interact with CPAN from the command line you can visit the cpan help page using the command below:
Of course, you don’t have to do any of this if you use one of our Linux Cloud VPS Hosting services, in which case you can simply ask our expert Linux admins to install any Perl module for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.
For Linux virtual machines, you manually install or upgrade VMware Tools by using the command line.
Install the latest version of VMware Tools to enhance the performance of the virtual machine's guest operating system and improve virtual machine management. When you power on a virtual machine, if a new version of VMware Tools is available, you see a notification in the status bar of the guest operating system.
This procedure describes how to use the VMware Tools tar installer to install or upgrade VMware Tools. For virtual machines in a vSphere environment, you can alternatively use VMware Tools operating system specific packages (OSPs) to install and upgrade VMware Tools. With OSPs you can use the native update mechanisms of your operating system to download, install, and manage VMware Tools. For more information, see Operating System Specific Packages for Linux Guest Operating Systems.
Prerequisites
■ | Verify that the guest operating system is running. |
Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system. | |
■ | To determine whether you have the latest version of VMware Tools, look on the Summary tab for the virtual machine. |
VMware Product | |
---|---|
vSphere Client | Inventory > Virtual Machine > Guest > Install/Upgrade VMware Tools |
2
If you are performing an upgrade or reinstallation, in the Install/Upgrade VMware Tools dialog box, select Interactive Tools Installation or Interactive Tools Upgrade and click OK.
The process starts by mounting the VMware Tools virtual disc on the guest operating system.
In the virtual machine, log in to the guest operating system as root and open a terminal window.
4
Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image.
If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed as something like this:
If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive.
a | If a mount point directory does not already exist, create it. Some Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom. Modify the command to reflect the conventions that your distribution uses. |
Mount the CD-ROM drive. Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the command to reflect the conventions that your distribution uses. |
6
Change to a working directory (for example, /tmp).
cd /tmp
Delete any previous vmware-tools-distrib directory before you install VMware Tools.
The location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib.
8
List the contents of the mount point directory and note the filename of the VMware Tools tar installer.
Uncompress the installer.
The value x.x.x is the product version number, and yyyy is the build number of the product release.
If you attempt to install a tar installation over an RPM installation, or the reverse, the installer detects the previous installation and must convert the installer database format before continuing.
10
If necessary, unmount the CD-ROM image.
If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.
Run the installer and configure VMware Tools.
Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.
12
Respond to the prompts by pressing Enter to accept the default values, if appropriate for your configuration.
Follow the instructions at the end of the script.
Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks.
The VMware Tools label on the Summary tab changes to OK.
![Install Padwalker Perl Module Linux Distributions Ubuntu Iso Install Padwalker Perl Module Linux Distributions Ubuntu Iso](/uploads/1/2/5/8/125859976/383065280.png)
(Recommended) If you upgraded VMware Tools as part of a larger, system-wide upgrade, next upgrade to the newest virtual hardware version available for the virtual machine.