Search Results for: ftp

npm package manager – install and use on Centos 7

Introduction Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. JavaScript is a client-side programming language, which means it’s processed within the user’s browser. With the advent of Node.js, JavaScript can also be used as a server-side language. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and more feature rich. The name npm is often referred to as an acronym for node package manager though it isn’t official. The npm tool allows users to connect to an online repository containing all the Node.js programs, plugins, modules etc to facilitate easy installation of different programs. In this article, we will explain how to install and use npm, a Node.js package management system, to manage Node.js packages on your system. We’ll be using a centos 7 system for the purpose of this demonstration.   Install npm Both npm and nodejs are available in the EPEL repository. So if you have the EPEL repository enabled then you may simply use yum to install the npm package manager tool as we do in the below example. [root@linuxnix ~]# yum install npm Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 6.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 puppetlabs-pc1 | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): puppetlabs-pc1/x86_64/primary_db | 135...

Read More

Configuring a caching only DNS server on Centos 7

Introduction DNS (Domain Name Server) is considered a critical component of any enterprise IT infrastructure. DNS runs as a service on a system and a DNS server can have different roles or we could say that DNS servers can be classified into multiple categories. In this quick article we will explain how to setup a caching only DNS server. This type of DNS server is the easiest to understand and setup. All DNS servers cache their queries but a DNS server that has been put in use for the sole purpose of caching DNS queries is referred to as a caching only DNS server. A caching only DNS server is also called a resolver. It queries DNS information and obtains the required information from other DNS servers (the root DNS servers in our case) and stores the query result in it’s cache for future use. The duration for which the query result remains in the servers’ cache is determined by the TTL value. This will help to reduce the DNS resolution time when the same query is performed again within the TTL window. With a basic understanding of what a caching only DNS server is, let’s configure one on a Centos 7 server. Step 1: Install required packages. To configure our caching only DNS server we will use the BIND package which is the most popular open source DNS...

Read More

28 yum command examples for package management in Linux part 2

In our previous article on the Linux yum command, we covered how we could use the yum package manager to search for packages, install them, query information about packages, check for security updates and update the system to have the latest versions of packages installed. In this article, we’ll show how to use yum to update/downgrade a single package, remove packages and a few other tips and tricks. Update single package using YUM Example 15: We could use yum to update a single or multiple packages instead of installing updates available for every package installed on the system. We accomplish this by using the yum update command followed by the package name. Given below is an example. [root@linuxnix ~]# yum update nfs-utils Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile * base: centos.mirror.snu.edu.in * epel: ftp.riken.jp * extras: centos.mirror.snu.edu.in * updates: centos.mirror.snu.edu.in Resolving Dependencies --> Running transaction check ---> Package nfs-utils.x86_64 1:1.2.3-70.el6 will be updated ---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================ Package Arch Version Repository Size ============================================================ Updating: nfs-utils x86_64 1:1.2.3-75.el6_9 updates 336 k Transaction Summary ============================================================ Upgrade 1 Package(s) Total size: 336 k Is this ok [y/N]: Remove a package using yum Example 16: In order to remove a package from the system via yum, we use the yum remove command followed...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.