How to upgrade a single package using apt-get?

1
...
0 0
2

I'm currently running debian 8 and I want to upgrade security patches which is provided by debian but problem is that, if I upgrade a single package then it asks to upgrade many packages, as in:

$ apt-get upgrade openssl The following packages will be upgraded: dpkg dpkg-dev krb5-locales libapache2-mod-php5 libdpkg-perl libfreetype6 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libpng12-0 libssl1.0.0 linux-headers-3.2.0-4-amd64 linux-headers-3.2.0-4-common linux-image-3.2.0-4-amd64 linux-libc-dev ntp php5 php5-cli php5-common php5- curl php5-readline tzdata unzip virtualbox virtualbox-dkms virtualbox-qt....too many The following packages have been kept back: acpid anacron apt-xapian-index aptitude aptitude-common aspell-de at at- spi2-core avahi-daemon base-passwd bind9-host binfmt-support bsdutils consolekit cron cryptsetup-bin db5.1-util dbus default-jre default- jre-headless dictionaries-common dmsetup dnsmasq-base...
0 0
3
I

have latest version of Ubuntu Linux LTS server. How do I update Ubuntu Linux for security and application fix/upgrades using ssh command line? How can I install updates via command line option?


Ubuntu Linux can be upgraded using GUI tools or using traditional command line tools such as:

apt-get command – apt-get is the command-line tool for handling packages. aptitude command – aptitude is a text-based interface to the Debian GNU/Linux package system including Ubuntu Linux.

Ubuntu Linux server – Install updates via apt-get command line (option #1)

The commands are as follows:
=> apt-get update : Update is used to resynchronize the package index files from their sources via Internet.

=> apt-get upgrade : Upgrade is used to install the newest versions of all packages currently installed on the system

=> apt-get install package-name : Install is followed by one or more packages desired for installation. If package is already...

0 0
4

One important thing to master under Linux System/Server Administration is package management using different package management tools.

Different Linux distributions install applications in a pre-compiled package that contain binary files, configuration files and also information about the application’s dependencies.

Read Also: Learn 25 ‘apt-get’ and ‘apt-cache’ Command Examples in Debian based Systems

Package management tools help System/Server Administrators in many ways such as:

Downloading and installing software Compile software from source Keeping track of all software installed, their updates and upgrades Handling dependencies and also keeping other information about installed software and many more

In this guide, we are going to look at 15 examples of how to use the new APT (Advanced Package Tool) on your Ubuntu Linux systems.

APT is a command-line based tool that is used for dealing with packages on a Ubuntu based Linux systems. It...

0 0
5

Apt-Get stands for Advanced Packaging Tool (APT). apg-get is a powerful command-line tool which is used to automatically download and install new software packages, upgrade existing software packages, update the package list index, and to upgrade the entire Debian based systems. Some other package manger utilities which are being used widely in Linux are yum, dnf, apt-get, dpkg, rpm, Zypper, pacman, etc.,

Now, i’m going to play on our Ubuntu 15.10 box to explain and cover mostly used Apt-Get commands with examples.

1) Common syntax/file location for Apt-Get

See below for common syntax/ file location of apt-get.

# General syntax for apt-get # apt-get [options] [pkg1] [pkg2] ... # most popular apt-get commands # [install remove update upgrade dist-upgrade purge clean] # apt-get config file location # /etc/apt/apt.conf # apt-get Package file location # /etc/apt/sources.list /etc/apt/sources.list.d/ # apt-get cached file location # /var/cache/apt #...
0 0
6

Docker can build images automatically by reading the instructions from a Dockerfile, a text file that contains all the commands, in order, needed to build a given image. Dockerfiles adhere to a specific format and use a specific set of instructions. You can learn the basics on the Dockerfile Reference page. If you’re new to writing Dockerfiles, you should start there.

This document covers the best practices and methods recommended by Docker, Inc. and the Docker community for creating easy-to-use, effective Dockerfiles. We strongly suggest you follow these recommendations (in fact, if you’re creating an Official Image, you must adhere to these practices).

You can see many of these practices and recommendations in action in the buildpack-deps Dockerfile.

Note: for more detailed explanations of any of the Dockerfile commands mentioned here, visit the Dockerfile Reference page.

General guidelines and recommendations

Containers should be...

0 0
7
APT HOWTO - Managing packages

[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ next ]

3.1 Updating the list of available packages

The packaging system uses a private database to keep track of which packages are installed, which are not installed and which are available for installation. The apt-get program uses this database to find out how to install packages requested by the user and to find out which additional packages are needed in order for a selected package to work properly.

To update this list, you would use the command apt-get update. This command looks for the package lists in the archives found in /etc/apt/sources.list; see The /etc/apt/sources.list file, Section 2.1 for more information about this file.

It's a good idea to run this command regularly to keep yourself and your system informed about possible package updates, particularly security updates.

3.2 Installing...

0 0
8

A. Introduction

This tutorial explains how to upgrade to Linux Mint 18.

B. General considerations

B1. Do you need to upgrade?

Linux Mint 13 will be supported until 2017.

Linux Mint 17, 17.1, 17.2 and 17.3 will be supported until 2019.

If your version of Linux Mint is still supported, and you are happy with your current system, then you don't need to upgrade.

B2. Did you try Linux Mint 18 on this computer?

Each new version of Linux Mint comes with a new kernel. This means that it handles hardware differently. For instance, you may find out that a graphic card or a wireless adapter which currently works fine for you under Linux Mint, isn't recognized by the newer version of Linux Mint you're planning to upgrade to. In some cases, this could mean that upgrading to this release is the wrong decision, maybe you're better off skipping that particular release? There's only one way to know: you need to try it.

...

0 0
9

Brief: This beginner’s guide shows you what you can do with apt-get commands in Linux, how to use it to find new packages, install and upgrade new packages and clean your system.

If you have started using Ubuntu or any other Ubuntu based Linux distribution such as Linux Mint, elementary OS etc, you must have come across apt-get command by now.

In fact, first in the list of things to do after installing Ubuntu is to use apt-get update and apt-get upgrade. Now, you might be aware of a few commands and their usage but perhaps you might not be aware of other apt-get commands and their usage.

In this guide for beginners, I am going to explain you various of apt-get commands with examples so that you can use them as an expert Linux user.

What is apt-get?

Ubuntu is derived from Debian Linux. And Debian uses dpkg packaging system. A packaging system is a way to provide programs and applications for installation. This way, you don’t have to build a...

0 0
10


Dist-upgrade will not go and install every package under the sun.

Well, if you want to do a distro-upgrade, use dist-upgrade. For instance, moving from Debian -stable to Debian -testing. Dist-upgrade is a special upgrade that is used if you are fetching packages from a new location, which is specified in /etc/apt/sources.list

If you want to simply upgrade the packages you have installed for your current distro, use 'apt-get upgrade'.

I hope that clears up your confusion.

1 members found this post helpful.

This depends on how you configured your apt. If apt installs recommends by default, it may be that an newly installed package is only a recommendation and as such not absolutely necessary. If you configured apt to not install recommends (which you should, if you are concerned about the size of the install) then a newly install package will be a dependency. In that case it is absolutely...

0 0
11

What is Apt-Get?

Apt is a command line frontend for the dpkg packaging system and is the preferred way of managing software from the command line for many distributions. It is the main package management system in Debian and Debian-based Linux distributions like Ubuntu.

While a tool called "dpkg" forms the underlying packaging layer, apt-get and apt-cache provide user-friendly interfaces and implement dependency handling. This allows users to efficiently manage large amounts of software easily.

In this guide, we will discuss the basic usage of apt-get and apt-cache and how they can manage your software. We will be practicing on an Ubuntu 12.04 cloud server, but the same steps and techniques should apply on any Debian-based distribution.

How To Update the Package Database with Apt-Get

Apt-get operates on a database of known, available software. It performs installations, package searches, and many other operations by referencing this...

0 0
12

In my experience on Ubuntu 12.04 LTS, using the command below will not upgrade the package if using a separate PPA -

sudo apt-get --only-upgrade install

Similarily, I did not want to run the upgrade command, which would upgrade all packages on my server -

sudo apt-get dist-upgrade

For example, I have PHP 5.3 installed and have added the ondrej PPA to my apt.sources using -

sudo add-apt-repository ppa:ondrej/php5

If I run

sudo apt-get install php5

it will just reinstall PHP 5.3.

I have to, first, determine the version number to upgrade to, using

sudo apt-cache policy php5

This will list all available version numbers. You should find the version number you want to upgrade to, and then copy the whole string that references it. For example, the string for PHP 5.5 on Ubuntu is "5.5.16+dfsg-1+deb.sury.org~precise+2".

Now, you can run the apt-get install command with the specific version number, and voila!

sudo apt-get install...
0 0
13
B

oth Debian and Ubuntu Linux provides a number of package management tools. This article summaries package management command along with it usage and examples for you.


apt-get : APT is acronym for Advanced Package Tool. It supports installing packages over internet using ftp or http protocols. You can also upgrade all packages in a single operations, which makes it even more attractive. dpkg : Debian packaging tool which can be use to install, query, uninstall packages.

Gui tools: You can also try GUI based or high level interface to the Debian GNU/Linux package system. Following list summaries them:

aptitude: It is a text-based interface to the Debian GNU/Linux package system. synaptic: GUI front end for APT

Red hat Linux package names generally end in .rpm, similarly Debian package names end in .deb, for example:

apache_1.3.31-6_i386.deb

Where,

apache : Package name 1.3.31-6 : Version number i386 : Hardware Platform on which this...
0 0
14

You should be safe to remove aptitude and reinstall, as that won't affect the other apt utilities. So: apt-get remove aptitude followed by apt-get install aptitude, or if that still fails try apt-get purge aptitude followed by apt-get install aptitude.

Before doing either of the above, I recommend a full file-system and bad-block check in case there is a problem there that caused the problem (depending on the problem, if there is one, further activity could make things worse). Also, make sure you review what will be removed in the remove/purge step before letting it proceed (it should pause to ask for permission if anything extra is changed as a result of removing that one package), to double check my thought that this is...

0 0
15

This article explains how quickly you can learn to install, remove, update and search software packages using apt-get and apt-cache commands from the command line. This article provides some useful commands that will help you to handle package management in Debian/Ubuntu based systems.

APT-GET and APT-CACHE Commands

What is apt-get?

The apt-get utility is a powerful and free package management command line program, that is used to work with Ubuntu’s APT (Advanced Packaging Tool) library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operating system.

What is apt-cache?

The apt-cache command line tool is used for searching apt software package cache. In simple words, this tool is used to search software packages, collects information of packages and also used to search for what available packages are ready for installation on Debian or Ubuntu...

0 0
16

re heartbleed, I'm trying to upgrade openssl, WITHOUT upgrading all packages on my system

so I am running apt-get install openssl as shown here, it's implied that doing this should upgrade openssl: How to upgrade a single package using apt-get?

I verify via apt-cache that it's installed:

root@nyc2-04-www:~# apt-cache policy openssl openssl: Installed: 1.0.1g-1 Candidate: 1.0.1g-2 Version table: 1.0.1g-2 0 500 http://http.debian.net/debian/ sid/main amd64 Packages *** 1.0.1g-1 0 100 /var/lib/dpkg/status 1.0.1e-2+deb7u6 0 500 http://security.debian.org/ wheezy/updates/main amd64 Packages 1.0.1e-2+deb7u4 0 500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages 500 http://http.debian.net/debian/ wheezy/main amd64 Packages

however after rebooting, i see that the old vunerable openssl is still active. running openssl version -a shows that 1.0.1f is still active.

also confirmed that my server is...

0 0
17

The Advanced Package Tool, or APT, is a free software user interface that works with core libraries to handle the installation and removal of software on the Debian, Slackware and other Linux distributions.[3] APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from precompiled files or by compiling source code.[3]

APT was originally designed as a front-end for dpkg to work with Debian's .deb packages, but it has since been modified to also work with the RPM Package Manager system via APT-RPM.[4] The Fink project has ported APT to Mac OS X for some of its own package management tasks,[5] and APT is also available in OpenSolaris.

There has been an apt program since version 1.0; apt is a collection of tools distributed in a package named apt. A significant part of apt is defined in a C++ library of functions; apt also includes command-line programs for...

0 0
18
APT HOWTO (Obsolete Documentation) - Managing packages

[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ next ]

3.1 Updating the list of available packages

The packaging system uses a private database to keep track of which packages are installed, which are not installed and which are available for installation. The apt-get program uses this database to find out how to install packages requested by the user and to find out which additional packages are needed in order for a selected package to work properly.

To update this list, you would use the command apt-get update. This command looks for the package lists in the archives found in /etc/apt/sources.list; see The /etc/apt/sources.list file, Section 2.1 for more information about this file.

It's a good idea to run this command regularly to keep yourself and your system informed about possible package updates, particularly security updates.

3.2...

0 0
19
Using Debian Linux Packages

"Packages" are software. A package can be a workstation-type program (mozilla Web browser, gimp graphics editor, etc.), a server-type program (Apache Web server, Sendmail e-mail server, etc.), a utility (apcupsd for APC UPSs, taper backup utility), programming libraries, or OS components (GUIs, language modules, even kernel patches). You can download and install software which isn't "packaged". It's just that when software is put into a package it makes it easier to install because programs are already compiled (binary), directories are created if necessary, and all files (binary executables, text configuration files, man pages, etc.) are put into the proper directories. Some packages even have configuration scripts that are run near the end of the package installation to help you initially configure the software.

A "package manager" is used to search for, install, remove, etc. packages. Red Hat's package manager uses .rpm files. Debian's...

0 0
20

Manage packages from the commandline

The more common way to manage packages or softwares is from Synaptic Package Manager. Its the easiest gui tool to install and remove software from your debian/ubuntu system.

However for those who prefer the console, there are plenty of tools to do the job as easily. In this tutorial we are going to look into apt, the package management tool used on ubuntu. Even I used to use the synaptic gui earlier, when I started with the commandline tools, I found the commandline tools easier and faster.

On ubuntu there are 3 main commands to manage packages. These are dpkg, apt-* and aptitude. So lets start experimenting with these one by one.

Dpkg command

List all installed packages

This command will list all the installed packages.

$ dpkg -l

Search installed packages

Search the installed packages for 'apache'

$ dpkg --get-selections | grep 'apache' apache2 install...
0 0
21

As I've mentioned before I'm an openSUSE user, and as long as they don't make the "U" lower case again, I'll probably stick with it. When it comes to package management, OpenSUSE and SUSE Linux Enterprice (and SuSE before them) are usually associated with YaST (and yes, I'm still waiting for them to upper case the "a"). YaST works well but it's a bit verbose for installing a single package, and of course that's just more fodder for the apt-getters with all their apt-get install this and their apt-get install thats. And you can't argue with them, but there are other options with openSUSE: yum and apt4rpm come to mind, but the preferred solution is zypper.

Zypper is a command line tool for package management, it's based on ZYpp, aka libzypp. The WikiPedia entry for Zypp says:

Unlike other common package managers, it provides a powerful satisfiability solver to compute package dependencies and a convenient package management API.

Since we don't want our heads to explode...

0 0