LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-17-2011, 03:45 PM   #1
IMNemo
LQ Newbie
 
Registered: Dec 2009
Location: Florida
Distribution: Ubuntu 9.10
Posts: 1

Rep: Reputation: 0
aptitude in Ubuntu 11.10


I have installed Ubuntu 11.10 and have tried to use a command that I have used in past versions (i.e 10.10, 11.04). Now Ubuntu is telling me (1) aptitude is "not installed", and when i try to install it it tells me that the dependency's are not met. It needs "libapt-pkg4.10". libapt-pkg4.11 is installed in Ubuntu 11.10. How can I get aptitude installed, or how can I change my command to get the results I'm looking for?

The command is:
aptitude search -F "%p" --disable-columns ~i >~/tmp/programs-install.txt

I'm trying to get text list of every program I have installed in one version so as to run a comparison to locate the name and then install packages from one version to another. I know it is a manual process, but it works for me. Can anyone help? Thanks, if you can
 
Old 10-17-2011, 04:03 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,921

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Try:

Code:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install aptitude
This will refresh your package list, update your system, and install aptitude.
 
Old 10-17-2011, 04:06 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,651
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Do I understand you right, you need a list of packages installed on one system, so that you can install the same packages on another system?
In that case you can get the list with
Code:
 dpkg --get-selections > installed_packages
If you want to setup another system the same way just copy the list to that system and do
Code:
dpkg --set-selections < installed_packages
apt-get dselect-upgrade
All these actions have to be run as root, of course, so you may have to put sudo in front.

Last edited by TobiSGD; 10-17-2011 at 04:07 PM. Reason: fixed typos
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 07:02 AM
I Can't Use 'Apt-get' And 'Aptitude' In Ubuntu - HELP!!! davidx Linux - Software 2 10-23-2008 11:07 PM
Apt-get and aptitude break on aspell-en (ubuntu) hairytorus Linux - Newbie 3 09-30-2008 12:53 PM
Ubuntu aptitude and .deb question bingerthedog Ubuntu 3 08-02-2005 04:08 PM


All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration