Search Results for: ftp

12 DPKG command examples

Introduction The package manager for Debian and distros derived from Debian is called dpkg or Debian package. As users, we can use dpkg directly or use higher level programs like apt(advanced package management tool) which gives us a few more features. Utilities such as dpkg-deb and dpkg-query use dpkg as a front-end to perform some actions. In this article, we will demonstrate how you can use the dpkg package manager to list, install, uninstall and query package on an Ubuntu 16.04 system. Example 1: Display dpkg version To display the version of the dpkg package manager installed on your system use the dpkg command with the –version option. root@linuxnix:~# dpkg --version Debian 'dpkg' package management program version 1.18.4 (amd64). This is free software; see the GNU General Public License version 2 or later for copying conditions. There is NO warranty. root@linuxnix:~#   Example 2: List all installed packages Using the dpkg command with the -l option lists all packages currently installed on the system. root@linuxnix:~# dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================================-======================================= ii accountsservice 0.6.40-2ubuntu11.1 amd64 query and manipulate user account information ii adduser 3.113+nmu3ubuntu4 all add and remove users and groups ii apparmor 2.10.95-0ubuntu2 amd64 user-space parser utility for AppArmor ii apt 1.2.12~ubuntu16.04.1 amd64 commandline package manager ii apt-transport-https 1.2.12~ubuntu16.04.1 amd64 https download transport for APT -----------------------------------------------------------output truncated for brevity...

Read More

Install and use pip for python package management in Linux

Introduction Python is one of the most popular scripting languages in use today and due to its wide user base and community support, it has thousands to of modules available which help to add to its existing functionality. The version of python that comes pre-installed with Linux distributions has some modules already available. Modules for python are made available on the website pypi as archives. When we need to install a module we could do it manually by downloading the modules from the pypi site, extract the archive and compile and install the module. This method involves a lot of manual work on the part of the user and would be even more difficult when the concerned modules have other dependencies involved. To solve this problem, the pip software was introduced. The name pip is an acronym for python indexing project. The pip utility is a package manager for python modules available via pypi. We can use it to install and maintain python modules on the system. When installing modules using pip, it’s will take care of all the dependencies of the modules being installed.   Install pip To install pip on a redhat based system, we use the following command [root@linuxnix ~]# yum install python-pip Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 6.8 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00...

Read More

Netstat : Master it with these 6 steps

Netstat is a command line utility that can be used to list out all the network connections on a system. It lists out all the tcp, udp socket connections and the unix socket connections. Netstat also displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc. In this guide, we will see how to use this tool to gather information about network connections and open ports on a system. Step 01 : List all connections with netstat To view all the network connections, simply run the following command #netstat -a Step 02 : View network interfaces with netstat You can view the network interfaces in your system by using the following command #netstat -i To get a more simple and readable output from the above command, use the -e option along with -i #netstat -ie Step 03 : View only active connections You can get the list of already active connections by using the grep along with netstat command. These connections are tagging ”ESTABLISHED” state #netstat -atnp | grep ESTA Step 04 : List only TCP or UDP connections Use the -t option along with netstat command to list only tcp connections. #netstat -at Use the -u option to list only udp connections. #netstat -au Step 05 : Check open ports that are listening to a service In Linux, Services are using...

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.