[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: packages as per sources



On 3/3/06, Wackojacko <wackojacko32@ntlworld.com> wrote:

> > I also wanted to get list of packages available from a source. As I
> > use apt, I wanted to use apt-cache as aptitude could not find as
> > suggested by Mr.Florian Ernst
>
> As already suggested, if the source is already in you
> /etc/apt/sources.list and you have done apt-get update then there will
> be a packages file in /var/lib/apt/lists/ for each source.
>
> You can then grep/awk the file to get a list of package names available
> e.g. for marillat amd64 source spello.sscnet.ucla.edu_marillat_dists_sid_
>
> cd /var/lib/apt/lists
>   cat spello.sscnet.ucla.edu_marillat_dists_sid_*| grep Package |awk -F
> : {'print$2'} > marillat.txt
>
> Will give a text file will all the package names in it.  Do the same for
> all your sources.  You probably write a simple bash script to compare
> the output of dpkg -l | grep ii against these files to fins where the
> package originates from.
Thanks for the script. I have done cd to the folder and already seen
that as Florian suggested. I may have to do diff that dpkg -l|grep ii.
--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042

Reply to: