Tags » Apt-get

Exclude packages from `apt-get upgrade`


To hold a package:

In short: sudo apt-mark hold <package>


echo <package> hold | sudo dpkg --set-selections

To unhold a package… 29 more words


apt-get install, apt-get upgrade

While installing software in linux (kali 2.0) you may get following error it could be your software list is not up to date:

E: Unable to locate package… 85 more words

Fix PGP error NO_PUBKEY when apt-get updating

It is common to find that a  sudo apt-get update does not do a clean job because of a couple of missing public keys. You might get something of the type: 296 more words

How To

Debian: Install VMware Tools

VMware is now recommending that you use Open-VM-Tools instead of the traditional VMware tool Linux agent. Below is the script to perform the installation from your terminal session… 20 more words

Server Admin

apt-get notes

A nice summary of some apt-get commands.

# Installs the selected package from repositories listed in
# /etc/apt/sources.list
$ apt-get install <package>

# Installs the selected package from repositories listed in
# /etc/apt/sources.list
$ apt-get install <package>

# Removes the selected package from your system
$ apt-get remove <package> 

# Updates the list of packages available on the repositories listed in
# /etc/apt/sources.list
$ apt-get update

# Installs the latest available versions of all your installed software
$ apt-get upgrade

# Installs the latest available software related to your configuration
$ apt-get dist-upgrade 

# Restarts/Starts the configuration script inside the package, 
# which will bring up the menu-based dialogs in the same way as after installation
$ dpkg-reconfigure

# Prints detailed information about the software package
$ apt-cache show <package> 

# Prints information on the installed software package
$ dpkg -l <package>

# Lists all files installed by the software package
$ dpkg -L <package>

# Installs a local (.deb) file to your system
$ dpkg -i <file>

# Prints information about the software package owning <file>
$ dpkg -S <file>

# Searches apt database for packages containing <string> in their 
# name and description
$ apt-cache search <string>

… 8 more words

Debian: Download all dependancies using apt-get

I manage from time to time servers that are sat in a pretty restricted DMZ and when I need to download and install packages I tend to have to download them on another machine first and then perform the installation on the hosts that need the packages. 52 more words

Server Admin

Debian: Debian Jessie Fail2Ban Implementation

A simple guide on how to perform an implementation of Fail2Ban on Debian Jessie for SSH.

Download and Install Fail2Ban

sudo apt-get install -y fail2ban
… 88 more words
Server Admin