apt-get

python apt-get list upgrades

hi, how can i get a list of upgrade packages available and write it to file using python? when i run "apt-get upgrade > output" it works in bash, I think i have to send the trap signal (ctrl-C) in python program any suggestions? on how to achieve this... -krisdigitx i tried this on the code now, #!/usr/bin/env python import su...

how to remove a ubuntu package from manual install list without actually remove it?

hi, whenever you install a package in ubuntu, it is added to manual install and the system will make sure it is updated and configured correctly. but i cannot find a way to remove the packages from the manual install list. i want to do this so i let the package system to take care of that package and remove it when it is unnecessary to...

Zsh Package Suggestion

Hello, I've just migrated to Zsh from Bash, but I have a bit of a problem in it. In bash on an Ubuntu system, when I type the name of a command which does not exist, Bash searches the apt database for a matching command name and prints out the package names that provide that command. It's a really useful feature, so I was wondering if so...

apt-get update, dist-upgrade, autoremove, autoclean in a single sudo command

My usual command for keeping the machine up to date is rather verbose, and it can result in more than one password prompt if any command takes a long time: sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean I'd like to shorten this down to one command (preferably without using a globa...

Mac Packaging: proposal for a new method(suggestions please)

Macports is the only packaging system I have checked out on the Mac and I dont like it.(it needs all its applications installed in a particular location. Thats probably the reason why it showed Python2.5 as a dependency which needs to be installed even though I already had it.) For a person who has moved over from Ubuntu, I sorely miss a...

Packages, Ubuntu counterparts of Gentoo's useful commands

Trying to learn how to work with packages in Ubuntu (and have Gentoo experience). This command is already known: (1) sudo apt-get install pkgname Looking for counterparts of these: (2) emerge -s pkgname (3) equery files pkgname (4) equery belongs filename (5) cat /var/lib/portage world Which useful (console) package commands do yo...

There is no apt-get install ruby1.9.2 yet on Linux?

The page http://www.ruby-lang.org/en/downloads/ only says 1.9.1 for Linux. Right now I am using RVM to do an rvm install 1.9.2 and it needs compilation. There is no apt-get install way to install it? Is there a way to list all Ruby version apt-get can install? ...

Install a deb inside a chroot.

I have (or soon will have) a puppet script that installs a number of packages via apt-get. I need them to be accessible from inside a chroot. Is there an easy way to set that up? My first thought is to run apt-get from inside the chroot but that seems both messy and to be a potential problem as how can I be sure I've completely removed ...

apt-cache search [emacs*+] doesnt find emacs in debian

I can't find the emacs package to install on debian. My /etc/apt/sources.list looks like: I am using apt-cache search [emacs*+] . I get a list of packages which depend on emacs, but not emacs itself. Any thoughts? I installed the Debian base system only. ...

help! apt-get erorr, after I trying install 'sun-java6-jdk' and jre unsuccessfully.

I try to install jdk and jre by using 'apt-get' command, but something wrong occured: ...... Reading package lists... Done Building dependency tree Reading state information... Done You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: sun-java6-bin: Depends: sun-java6-jre (= 6.2...

Downloading package with apt-get when it's already installed on system

How to download openssh package using apt-get? The problem is that the package is already installed so I get only: sudo apt-get install openssh -d Reading package lists... Done Building dependency tree... Done openssh is already the newest version. Because of being already installed, I don't get the debian package. I should remove it...

apt-get vs aptitude

What is the difference between apt-get vs aptitude. Which one is better? pros/cons? ...

Design principles as to how linux repository managers update themselves ?

I know there are other applications also, but considering yum/apt-get/aptitude/pacman are you core package managers for linux distributions. Today I saw on my fedora 13 box: (7/7): yum-3.2.28-4.fc13_3.2.28-5.fc13.noarch.drpm | 42 kB 00:00 And I started to wonder how does such a package update itself? What design is...

Running apt-get for another partition/directory?

I have booted my system from a live Ubuntu CD, and I need to fix some package problems. I have mounted my hard drive, and now I want to run apt-get as if I booted normally. ie change the working directory for apt-get so it will work on my hard drive. I have done this before, but I can't remember the syntax. I think it was only some flag,...

why apt-get cannot install any application?

Hi , when trying to install application using apt-get, I always get /bin/sh: /usr/sbin/dpkg-preconfigure: not found for example: $sudo apt-get install libssl-dev [sudo] password for camino: Reading package lists... Done Building dependency tree Reading state information... Done .... Do you want to continue [Y/n]? y WARNING:...