apt-get

why download only for apt-get cron job

I'm putting a crontab job for updating with apt-get once a day (running Debian Lenny, there are updates almost daily). But almost all examples i've seen of this cron job invoke the -d flag. This elicits 4 questions: Why should I only download the packages and not install them? Doesn't this defeat the purpose of running it automatical...

How to see packages installed on a given date using aptitude

Does anyone know if there's an easy way to find a list of packages installed, sorted by date, when using aptitude (or apt-get)? I was installing a bunch of packages to try something new, and it didn't work out. I'd like to remove all of these packages, to get back some disk space. I've tried just looking at the list of .deb files down...

linux, directories, where should stuff go

I'm currently trying to get to grips with using linux. I'm running mint linux (an ubuntu variant). When I install something using apt-get, files seem to get scattered across various system directories at random (system meaning not my home directory), of course I know this isn't at random it just seems this way at the moment. However if...

Running apt-get on EC2 without coughing up for a bunch of bandwidth charges

I'm running Ubuntu on EC2 (using the alestic community AMI) and on startup my new instances use up a bunch of bandwidth running apt-get upgrade etc. Bandwidth between EC2 instances is free... anyone know if there's a mirror of the Ubuntu packages somewhere on EC2 I can use instead? ...

Using apt-get to install an instance of a web application

Is it possible to have many instances of MediaWiki or Wordpress on a web server, installed and automatically upgraded by apt-get? If so, would Ubuntu LTS upgrade with security-only patches? Thanks! ...

What does 4: mean in g++ apt-get install version string?

On EasyPeasy 1.1 (for mini notebooks) derived from Ubuntu I installed g++ using apt-get: $ apt-get install g++ One of the lines displayed was: Setting up g++ (4:4.3.1-1ubuntu2) ... What the does "4:" mean? $ g++ --version g++ (Ubuntu 4.3.2-1ubuntu12) 4.3.2 What is the relationship of the "4.3.1" in apt-get to the "4.3.2" g++ ver...

Benefit of installing Django from .deb versus .tar.gz?

I'm starting Django development, and I can either install it from the .deb using $ apt-get install python-django on my Ubuntu machine, or I can download the .tar.gz from djangoproject.com, and start with that. What are the benefits and drawbacks of each approach? ...

libapache2-svn, matching version with Subversion 1.6.1

Hello, I'm installing subversion on an Xubuntu desktop system with apache2 installed and running fine. However, I wanted to use Subversion 1.6 because of the sparse directory feature. I'm running Jaunty, but I was able to tell apt-get to download 1.6.1 by temporarily adding the software source "deb http://source archive.canonical.com/ubu...

Check if a package is installed and then install it if it's not.

I'm working on a Ubuntu system and Currently this is what I'm doing: if ! which command > /dev/null; then echo -e "Command not found! Install? (y/n) \c" read if "$REPLY" = "y"; then sudo apt-get install command fi fi Is this what most people would do? Or is there a more elegant solution? ...

Does rubygems work on Ubuntu?

This blog post of December 2008 says that rubygems is broken on Debian-based systems. Does rubygems work cleanly on Ubuntu (for both 1.8 and 1.9)? ...

Just installed QtOpenGL but cannot import it (from Python)

I just installed it with apt-get on debian linux with apt-get install libqt4-opengl the rest of PyQt4 is available, but I cant get to this new module. from PyQt4 import QtOpenGL raises ImportError. any idea what to do? ...

Parsing output of apt-get install for progress bar

I'm working on a simple GUI Python script to do some simple tasks on a system. Some of that work involves apt-get install to install some packages. While this is going on, I want to display a progress bar that should update with the progress of the download, using the little percentage shown in apt-get's interface in the terminal. BUT!...

easy_install PIL fails

I am trying to setup a dev environment on a new laptop, I am trying sudo easy_install PIL after seting up setuptools and python etc, I get this error. Setup script exited with error: command 'gcc' failed with exit status 1 I have gcc and build_essentials installed, on Ubuntu Karmic. Full traceback is at http://dpaste.de/fHiW/ ...

Package libsndfile-dev has no installation candidate

I am trying to install "libsndfile-dev". I do the following: sudo apt-get install libsndfile-dev As the result I get the following: Reading package lists... Done Building dependency tree Reading state information... Done Package libsndfile-dev is a virtual package provided by: libsndfile1-dev 1.0.17-4ubuntu0.8.10.2 You shoul...

apt-get environment variables when spawning "debian rules" file

What are the environment variables made available to debian/rules (often make) when spawned by apt-get during installation of a package under Ubuntu? I am specifically after the environment variables that would pertain to Gnome's configuration directories. I'd like avoiding "hardcoding" things like ~/.conf/apps/ ... since I have been to...

Using Debian tools for building g++

I would like to rebuild g++ with my own specific settings. Here is what I did so far: sudo aptitude install build-dep g++-4.2 mkdir trial && cd trial apt-get source g++-4.2 Now I want to configure my specific settings. For g++ this is normally done by e.g. sh configure --prefix=/home/voku/non-productive But unfortunately I cannot ...

How to thoroughly purge and reinstall postgresql on ubuntu?

Somehow I've managed to completely bugger the install of postgresql on Ubuntu karmic. I want to start over from scratch, but when I "purge" the package with apt-get it still leaves traces behind such that the reinstall configuration doesn't run properly. After I've done: apt-get purge postgresql apt-get install postgresql It said S...

Using apt-get to remove ruby1.8 (and keep ruby1.9) but without removing some dependencies

I have the following configuration: uname -a : Linux 2.6.24.2 i686 GNU/Linux (Ubuntu) ruby1.8 -v : ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux] ruby1.9 -v : ruby 1.9.0 (2007-12-25 revision 14709) [i486-linux] ruby -v : ruby 1.9.0 (2007-12-25 revision 14709) [i486-linux] ls -l /usr/bin/ruby* : lrwxrwxrwx 1 root root 16 2010...

Winlibre - An Aptitude-Synaptic for Windows. Would that be useful?

Hi everyone. Last year, in 2009 GSoC, I participated with an organization called Winlibre. The basic idea is having a project similar to Aptitude (or Apt-get) and a GUI like Synaptic but for Windows and just to hold (initially), only open source software. The project was just ok, we finished what we considered was a good starting point ...

How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives

I tried to switch from Java 5 to Java 6 using the "update-java-alternatives" command like explained on this page: https://help.ubuntu.com/community/Java But afterwards I get the following error when I tried to execute java: root@webserver:~# java Error occurred during initialization of VM Could not reserve enough space for object heap ...