From: Jordon Bedwell on
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(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C558022.3000607(a)envygeeks.com
From: Camaleón on
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}\t${Architecture}\n' > /$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(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.08.01.15.19.33(a)gmail.com
From: Andrei Popescu on
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
From: Bob Proulx on
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
From: Jordon Bedwell on
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(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4C55A9E0.5050301(a)envygeeks.com