FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-01-2010, 02:09 PM
Jordon Bedwell
 
Default DPKG search by architecture

I can't for the life of me remember how to do it outside of CentOS, but
we want to remove 32bit libs and simply leave a plain 64bit system, yes
I removed ia32-libs but there are still some remains so does anybody
remember how to search for packages by architecture?



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C558022.3000607@envygeeks.com">http://lists.debian.org/4C558022.3000607@envygeeks.com
 
Old 08-01-2010, 03:19 PM
Camaleón
 
Default DPKG search by architecture

On Sun, 01 Aug 2010 09:09:38 -0500, Jordon Bedwell wrote:

> I can't for the life of me remember how to do it outside of CentOS, but
> we want to remove 32bit libs and simply leave a plain 64bit system, yes
> I removed ia32-libs but there are still some remains so does anybody
> remember how to search for packages by architecture?

Remember that "ia32-libs" is a 64 bits compiled package, just provides
the required 32-bit libraries for 32 bits programs.

Well, how about...?

***
dpkg-query -W -f='${Package} ${Architecture}
' > /$HOME/Desktop/arch.txt
***

I dunno how to filter "${Architecture}" to just match "i386" as the
output string O:-)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.08.01.15.19.33@gmail.com">http://lists.debian.org/pan.2010.08.01.15.19.33@gmail.com
 
Old 08-01-2010, 04:34 PM
Andrei Popescu
 
Default DPKG search by architecture

On Du, 01 aug 10, 09:09:38, Jordon Bedwell wrote:
> I can't for the life of me remember how to do it outside of CentOS,
> but we want to remove 32bit libs and simply leave a plain 64bit
> system, yes I removed ia32-libs but there are still some remains so
> does anybody remember how to search for packages by architecture?

Try uninstalling libc6-i386, it will probably pull any 32bit libraries
with it.

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 
Old 08-01-2010, 04:45 PM
Bob Proulx
 
Default DPKG search by architecture

Jordon Bedwell wrote:
> I can't for the life of me remember how to do it outside of CentOS, but
> we want to remove 32bit libs and simply leave a plain 64bit system,

Debian isn't like CentOS and isn't a "dual" architecture system in the
same way. Instead it is more of a single architecture system but with
the added capability that if the kernel supports it additional
libraries can be installed and multiple architectures run. So if you
are running an amd64 system you are already running a plain 64-bit
system.

> yes I removed ia32-libs

That is really all that you need to do.

> but there are still some remains so does anybody remember how to
> search for packages by architecture?

If a package is "removed" the configuration files are left behind. If
the package is "purged" then along with the normal files the
configuration files are removed too.

So the first step would be to see if the package is removed or
purged. List the status and look. The first two letters will give
the package status.

$ dpkg -l ia32-libs

Does that say "rc" in the first column?

$ dpkg -L ia32-libs

Are there files listed for that package? If so then you can "purge"
the package and remove the associated configuration files.

$ sudo dpkg --purge ia32-libs

The configuration files are left installed when a package is removed
so that it is easy to flip-flop between two alternative packages. For
example you might have Postfix installed and want to switch to Exim
(or the reverse) briefly, or any other set of alternative packages.
The configuration files are not trivial and if the configuration files
were removed then it would be difficult to return to the previous.
But with the configuration files left in place it is easy to install
an alternative, test something, then install again the previous and
with all of the configuration files in place. Very nice!

I didn't look but I doubt ia32-libs has very much in terms of
configuration files. So that seems safe to purge.

I am thinking that perhaps you are seeing other files and not knowing
what package they belong to. In that case you can ask dpkg to search
for them.

$ dpkg -S /emul/ia32-linux/lib/ld-2.7.so
libc6-i386: /emul/ia32-linux/lib/ld-2.7.so

In which case you would know that libc6-i386 is the package containing
the files you were interested in.

BTW the dlocate package optimizes this search. If you run dpkg -S
more than twice a year you will probably tire of the time it takes to
search the database desire the dlocate command instead. It keeps an
index and returns this information virtually immediately. And also
returns other search information too.

$ sudo apt-get install dlocate
$ dlocate /emul/ia32-linux
...

Bob
 
Old 08-01-2010, 05:07 PM
Jordon Bedwell
 
Default DPKG search by architecture

On 8/1/2010 11:45 AM, Bob Proulx wrote:

Debian isn't like CentOS and isn't a "dual" architecture system in the
same way. Instead it is more of a single architecture system but with
the added capability that if the kernel supports it additional
libraries can be installed and multiple architectures run. So if you
are running an amd64 system you are already running a plain 64-bit
system.


Ambiguous interpretation. Moot statement.


That is really all that you need to do.


False. Some 32bit libs remain. Some of us don't like to have unclean
systems. I know, it's common for Linux users to install all, leave all
and live with it, (most of the time,) but I, as a system administrator,
am picky about what is on my system, if I install it, and I remove it,
all of it is gone, or I manually remove it.



but there are still some remains so does anybody remember how to
search for packages by architecture?


If a package is "removed" the configuration files are left behind. If
the package is "purged" then along with the normal files the
configuration files are removed too.


Ambiguous misinterpretation. Moot statement.

[SNIP all the childish explanations like I don't know how to work Linux]


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C55A9E0.5050301@envygeeks.com">http://lists.debian.org/4C55A9E0.5050301@envygeeks.com
 
Old 08-01-2010, 05:11 PM
Jordon Bedwell
 
Default DPKG search by architecture

On 8/1/2010 11:34 AM, Andrei Popescu wrote:

On Du, 01 aug 10, 09:09:38, Jordon Bedwell wrote:

I can't for the life of me remember how to do it outside of CentOS,
but we want to remove 32bit libs and simply leave a plain 64bit
system, yes I removed ia32-libs but there are still some remains so
does anybody remember how to search for packages by architecture?


Try uninstalling libc6-i386, it will probably pull any 32bit libraries
with it.

Regards,
Andrei


This worked for most of them, thanks.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C55AAA8.4000808@envygeeks.com">http://lists.debian.org/4C55AAA8.4000808@envygeeks.com
 
Old 08-01-2010, 05:12 PM
Jordon Bedwell
 
Default DPKG search by architecture

On 8/1/2010 10:19 AM, Camaleón wrote:

dpkg-query -W -f='${Package} ${Architecture}
'


You are awesome man, this is exactly what I was looking for. Thanks


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C55AAFC.9010805@envygeeks.com">http://lists.debian.org/4C55AAFC.9010805@envygeeks.com
 
Old 08-01-2010, 06:23 PM
Joey Hess
 
Default DPKG search by architecture

Jordon Bedwell wrote:
> On 8/1/2010 10:19 AM, Camaleón wrote:
> >dpkg-query -W -f='${Package} ${Architecture}
'
>
> You are awesome man, this is exactly what I was looking for. Thanks

Except the architecture will be "amd64" or "all" for every package,
since as the other "childish" poster told you, Debian is not a
dual-architecture system.

--
see shy jo
 
Old 08-01-2010, 06:38 PM
Jordon Bedwell
 
Default DPKG search by architecture

On 8/1/2010 1:23 PM, Joey Hess wrote:

Jordon Bedwell wrote:

On 8/1/2010 10:19 AM, Camaleón wrote:

dpkg-query -W -f='${Package} ${Architecture}
'


You are awesome man, this is exactly what I was looking for. Thanks


Except the architecture will be "amd64" or "all" for every package,
since as the other "childish" poster told you, Debian is not a
dual-architecture system.

Worthless and moot statement. Also, another fine example of how
ambiguous people can be when reading simple English.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4C55BF40.8020609@envygeeks.com">http://lists.debian.org/4C55BF40.8020609@envygeeks.com
 
Old 08-01-2010, 06:57 PM
Joey Hess
 
Default DPKG search by architecture

Jordon Bedwell wrote:
> On 8/1/2010 1:23 PM, Joey Hess wrote:
> >Jordon Bedwell wrote:
> >>On 8/1/2010 10:19 AM, Camaleón wrote:
> >>>dpkg-query -W -f='${Package} ${Architecture}
'
> >>
> >>You are awesome man, this is exactly what I was looking for. Thanks
> >
> >Except the architecture will be "amd64" or "all" for every package,
> >since as the other "childish" poster told you, Debian is not a
> >dual-architecture system.
> >
> Worthless and moot statement. Also, another fine example of how
> ambiguous people can be when reading simple English.

.. And the above, kids, is a fine example of how to ensure that your
future questions are ignored!

--
see shy jo
 

Thread Tools




All times are GMT. The time now is 10:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org