Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What packages are installed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Wed May 18, 2005 2:14 am    Post subject: What packages are installed? Reply with quote

I will be having to change computers and HDD's in a few days and I need a way to find out which packages are currently installed on my system so that I may install the same packages on the new install. Can anyone help me with this? Thanks.
_________________
-RBJ1128
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Wed May 18, 2005 2:15 am    Post subject: Re: What packages are installed? Reply with quote

If you haven't already, emerge gentoolkit. Then equery list > pkgs. Alternatively, find /var/db/pkg -iname *.ebuild | cut -f5,6 -d/ | sort > pkgs.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
Devard
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 117
Location: Waterloo, Ontario, Canada

PostPosted: Wed May 18, 2005 2:18 am    Post subject: Reply with quote

You can also use the qpkg command as equery is deprecated. Go here for some usage examples.
_________________
GARNET CROW
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Wed May 18, 2005 2:21 am    Post subject: Reply with quote

Devard wrote:
You can also use the qpkg command as equery is deprecated.

Negative--qpkg is deprecated, not equery.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
jamesrt
n00b
n00b


Joined: 09 Sep 2003
Posts: 47
Location: New Zealand

PostPosted: Wed May 18, 2005 2:21 am    Post subject: Re: What packages are installed? Reply with quote

RBJ1128 wrote:
I need a way to find out which packages are currently installed on my system

Like most things Linux, there are easy and hard ways.

The easy way is to use "equery list" if you have the app-portage/gentoolkit package installed.

If you don't, then the hard way is to look at the /var/db/pkg tree; all portage-managed packages install information into here to track themselves, so using a command like
Code:
cd /var/db/pkg
find . -type d
will show you all packages (and version numbers) installed. The output isn't entirely pretty, but it works.
Back to top
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Wed May 18, 2005 2:22 am    Post subject: Reply with quote

Devard wrote:
You can also use the qpkg command as equery is deprecated. Go here for some usage examples.



qpkg is deprecieated. Try this command:

ls -lr --sort=time /var/db/pkg/*$group*/*/*ebuild >> current.packages

This will give you a cronological listing of packages that you have emerged/reemerged/updated.

jt
Back to top
View user's profile Send private message
Devard
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 117
Location: Waterloo, Ontario, Canada

PostPosted: Wed May 18, 2005 3:21 am    Post subject: Reply with quote

Quote:
Qpkg is deprecated in favour of equery,

Whoops, I misinterpreted that statement. At least qpkg still works, that's what I use usually anyway. My apologies, I didn't mean to give false information.
_________________
GARNET CROW
Back to top
View user's profile Send private message
RBJ1128
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 192

PostPosted: Wed May 18, 2005 11:57 am    Post subject: Reply with quote

Thanks to all who have replied. I can now move to a new machine much easier. Thanks again.
_________________
-RBJ1128
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed May 18, 2005 12:42 pm    Post subject: Reply with quote

Devard wrote:
Go here for some usage examples.


Moved from Portage & Programming, please see this FAQ.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum