Questions tagged [apt]

APT, the Advanced Packaging Tool, is Debian's high-level package management system. It is also used by several other Linux-based and Debian-based operating systems.

The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from binary files or by compiling source code.

1137 questions
51
votes
5 answers

How do I show the actions that installing a .deb package will take?

I would like to be able to view the scripts/triggers associated with a package due for upgrade so that I can tell, for example, whether it will result in the web server being restarted. I can't find an aptitude option to show me that (or apt/dpkg);…
Sam Brightman
  • 825
  • 1
  • 8
  • 12
50
votes
14 answers

Is there any way to get APT to install packages to my home directory?

Is there any way to get APT to install packages to my home directory? I don't want to make changes system wide. Alternatively, are there any home-directory based linux package managers?
Joel McCracken
48
votes
5 answers

100% non-interactive Debian dist-upgrade

Is there a way to do an apt-get dist-upgrade in Debian that not only automatically answers "yes" to all questions asked, but also uses reasonable defaults as answers to questions that are sophisticated enough to require various interactive dialog…
Alex Balashov
  • 907
  • 2
  • 9
  • 16
48
votes
4 answers

Installing optional Nginx modules with apt-get

I currently have Nginx installed via the instructions on the Nginx site: nginx=stable sudo su - add-apt-repository ppa:nginx/$nginx apt-get update apt-get install I have configured Nginx and it has been running great for a little while. Now, I…
Michelle Tilley
  • 583
  • 1
  • 5
  • 7
42
votes
3 answers

Passing default answers to apt-get package install questions?

I'm trying to write a configuration script for new servers, and one of the first steps is to install a series of required packages, such as MySQL, phpMyAdmin, etc. using apt-get install However, when dpkg tries to configure them it asks you for a…
Tarka
  • 525
  • 1
  • 4
  • 9
42
votes
12 answers

Find last time update was performed with apt-get

I need to find the last time that the apt-get update command was run on my server. How can I determine this information?
Mark Roddy
  • 777
  • 2
  • 11
  • 13
41
votes
4 answers

apt-get update/upgrade list without changing anything

I would like to view what packages are available for update/upgrade without actually changing any files becuase there are some packages I wouldn't like to update. Would it then be possible to apt-get update with exceptions.
John Magnolia
  • 1,723
  • 6
  • 28
  • 46
38
votes
7 answers

Linux: how to restore config file using apt-get/aptitude?

I've occasionally lost my config file "/etc/mysql/my.cnf", and want to restore it. The file belongs to package mysql-common which is needed for some vital functionality so I can't just purge && install it: the dependencies would be also uninstalled…
kolypto
  • 11,058
  • 12
  • 54
  • 66
37
votes
2 answers

Can someone clarify Ubuntu (Debian) dist-upgrade for me?

I've got an Ubuntu 8.04 LTS server. There are several packages which are "kept back" ("the following updates have been kept back") when I do an apt-get upgrade. It's my understanding that I can do an apt-get dist-upgrade to upgrade these packages,…
Boden
  • 4,968
  • 12
  • 49
  • 70
36
votes
2 answers

yum equivalent to apt-get upgrade vs apt-get dist-upgrade?

I'm a *.deb guy and I feel quite uncomfortable while managing rpms. I'm used to run apt-get upgrade in my debian based servers for "normal" upgrades and apt-get dist-upgrade for allowing kernel upgrades or allowing new major package versions…
hmontoliu
  • 3,753
  • 3
  • 23
  • 24
35
votes
2 answers

How to disable "WARNING: apt does not have a stable CLI interface..."

I'm trying to write a script which will output the number of upgrade-able packages from apt. However it keeps giving me this warning with it also: # sudo apt update | grep packages | cut -d '.' -f 1 WARNING: apt does not have a stable CLI…
CorruptComputer
  • 453
  • 1
  • 4
  • 5
34
votes
4 answers

How do I see the changelog for a debian/ubuntu deb package?

I'm running Ubuntu and I have a deb file installed. I've made deb packages before, so I know there is a debian changelog (debchange). Is there anyway to see the debian changelog for any package that I have installed? Assume I don't have access to…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
31
votes
11 answers

How to get a list of security updates on the command line in Debian/Ubuntu

In the GUI tool you can get a list packages with security updates. Can this be done on the command line in Debian or Ubuntu? Normally I might use "apt-get upgrade" which would show me what is being upgraded, but I would like to know which ones are…
Stephen Paulger
  • 421
  • 1
  • 4
  • 6
30
votes
4 answers

Cannot install openjdk-8-jre-headless on Debian Jessie

This Friday I saw that I had 2 held back packages for some reason when I ran apt-get upgrade, so naturally I did what any inexperienced sysadmin would do and uninstalled the packages in the hopes that I could simply re-install them and the problem…
SeinopSys
  • 532
  • 2
  • 6
  • 19
29
votes
2 answers

How to automate changed config files during apt-get upgrade in Ubuntu 12

I like to use "knife cloudstack server create ..." to build a new VM. My bootstrap template starts off with an "apt-get update" and "apt-get -y upgrade". The upgrade then halts with: 10.190.113.11 Configuration file `/etc/nscd.conf' 10.190.113.11 …
Mojo
  • 955
  • 2
  • 9
  • 24
1
2
3
75 76