Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to install Easy Install for Python in Ubuntu

Answer:

EasyInstall is a package manager for the Python programming language that provides a standard format for distributing Python programs and libraries (based on the Python Eggs wrapper).

To install the EasyInstall under Ubuntu, type:

# sudo apt-get install python-setuptools python-dev build-essential

List all installed package in Ubuntu

Answer:

To list all the installed packages in Ubuntu, so you try the "dpkg -l" command:

E.g.

# dpkg -l

Yum repository mirror for old CentOS' versions

Answer:

Most CentOS' mirrors don't host full mirror of Yum repository for all versions of CentOS. If you are using older version of CentOS, you might one-day found the yum update is broken since the mirror no longer contains the files you needed.

In this case, you can modify the file /etc/yum.repos.d/CentOS-Base.repo and change all paths point to the following:

..
baseurl=http://vault.centos.org/...
..

Then do a yum update to reflect the changes.

Add a User in Linux

Answer:

Add a User in Linux, just use the useradd command:

# sudo useradd -d /home/john -m john

The above command will create the user john and create a home directory which is at /home/john

Install multiple software at the same time using apt-get

Answer:

It is easy to use apt-get to install multiple softwares at the same time, without executing commands one by one.

E.g.

# sudo apt-get install curl wget lynx elinks