You are not logged in.

#1 2009-10-23 17:01:09

barii
Member
Registered: 2009-04-09
Posts: 21

[solved] problem with pacman -R $(pacman -Qqdt)

I have a problem with network. Some programs, for example firefox, chromium, pidgin, emesene, can't use the network, but orherones (for example opera, empathy, ping) use the internet connection. I can see the routers config all of the browsers.  I have az idea what could cause the problem. A have run a pacman -R $(pacman -Qdtq) yesterday night, but today a used firefox before a reboot.

the pacman's log:
[2009-10-22 22:25] removed zvbi (0.2.33-1)
[2009-10-22 22:25] removed zip (3.0-1.1)
[2009-10-22 22:25] removed xtrans (1.2.5-1)
[2009-10-22 22:25] removed xscreensaver (5.10-2)
[2009-10-22 22:25] removed xorg-xsm (1.0.1-2)
[2009-10-22 22:26] removed xfce4-panel (4.6.2-1)
[2009-10-22 22:26] removed termcap-compat (1.2.3-4)
[2009-10-22 22:26] removed ruby (1.9.1_p243-2)
[2009-10-22 22:26] removed rpmextract (1.0-3)
[2009-10-22 22:26] removed pyxml (0.8.4-6)
[2009-10-22 22:26] removed python-numpy (1.3.0-2)
[2009-10-22 22:26] removed python-numeric (24.2-4)
[2009-10-22 22:26] removed python-notify (0.1.1-6)
[2009-10-22 22:26] removed python-nose (0.11.1-1)
[2009-10-22 22:26] removed python-gdata (1.3.1-1)
[2009-10-22 22:26] removed pinentry (0.7.6-1)
[2009-10-22 22:26] removed perl-uri (1.40-1)
[2009-10-22 22:26] removed nss-mdns (0.10-2)
[2009-10-22 22:26] removed mutagen (1.16-1)
[2009-10-22 22:26] removed lilo (22.8-3)
[2009-10-22 22:26] removed libxtrap (1.0.0-2)
[2009-10-22 22:26] removed libxp (1.0.0-3)
[2009-10-22 22:26] removed libxkbui (1.0.2-2)
[2009-10-22 22:26] removed libxevie (1.0.2-2)
[2009-10-22 22:26] removed libtelepathy (0.3.3-4)
[2009-10-22 22:26] removed libsmbios (2.2.16-1)
[2009-10-22 22:26] removed libsexy (0.1.11-1)
[2009-10-22 22:26] removed liblbxutil (1.0.1-1)
[2009-10-22 22:26] removed libgnomeprintui (2.18.4-1)
[2009-10-22 22:26] removed gtk-doc (1.11-2)
[2009-10-22 22:26] removed gnomesu (0.3.1-5)
[2009-10-22 22:26] removed gnome-common (2.28.0-1)
[2009-10-22 22:26] removed gmm++ (3.1-1)
[2009-10-22 22:26] removed glproto (1.4.10-1)
[2009-10-22 22:26] removed fltk (1.1.9-2)
[2009-10-22 22:26] removed eel (2.26.0-1)
[2009-10-22 22:26] removed dirmngr (1.0.2-2)
[2009-10-22 22:26] removed dhcdbd (3.0-1)
[2009-10-22 22:26] removed decibel (0.5.0-1)
[2009-10-22 22:26] removed db4.5 (4.5.20-2)
[2009-10-22 22:26] removed db4.1 (4.1.25-3)
[2009-10-22 22:26] removed cmake (2.6.4-3)
[2009-10-22 22:26] removed automoc4 (0.9.88-1)

sorry about my english

Last edited by barii (2009-11-08 00:13:38)

Offline

#2 2009-10-23 17:54:26

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [solved] problem with pacman -R $(pacman -Qqdt)

place that part of the log of the packages you removed in a file (lets call it "x")

then do this

cat x | sed -e 's|\[....\-..\-..\ ..\:..\]\ removed\ ||g' -e 's|\ \(.*\)$||g' | xargs sudo pacman -S

edit:
take care on using that pacman "purge" script, it may not really work as you wanted because it will probably remove packages that are "eventually" needed by another packages (your example was of browsers) which does not mark them as "dependencies".

Last edited by quarkup (2009-10-23 18:04:59)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-10-23 18:27:03

barii
Member
Registered: 2009-04-09
Posts: 21

Re: [solved] problem with pacman -R $(pacman -Qqdt)

What do you prefer insread of pacman -R $(pacman -Qdtq) ?
So I need to reinstall the removed packages? But what packages what realy importants? because I can'd download it in this op. syste, because the pacman don' work, too.
Your csript warned whan found packages what removed from the archlinux server, a cut this rows, and after that it wrote: "Do you start the install [Y/N]" in my language, but i got the prompt


i found only one item in the list what about i kdow that it  is a network package, but it has removed from the server, because it is deprecated

Last edited by barii (2009-10-23 18:28:25)

Offline

#4 2009-10-23 19:20:15

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [solved] problem with pacman -R $(pacman -Qqdt)

what my script (above) does is this (in steps). remember that the pipe command | will redirect the output of the first command to the input of the second command.

1) read the file and prints it to output

cat x

2) filters the name of the packages (removes all that dates and versions - the ones in bold: [2009-10-22 22:26] removed automoc4 (0.9.88-1)

sed -e 's|\[....\-..\-..\ ..\:..\]\ removed\ ||g' -e 's|\ \(.*\)$||g'

example:

cat x | sed -e 's|\[....\-..\-..\ ..\:..\]\ removed\ ||g' -e 's|\ \(.*\)$||g'

this will simply give you the list of the packages you removed.


3) at last, the "xargs" command executes its arguments to each input

xargs pacman -S

- in the end: how you should remove your packages and avoid having unused packages in the system

when you really want to do that thing of "purging" packages (like the apt-get manager is able to do)
is better to check the list with the command

pacman -Qqdt

then chosing the packages you know for sure that you don't need

note: this is exactly the same as of

pacman -Qdtq

or any other combination you can do with the 3 last flags (actually are 3! = 6 "different" combinations)

to remove a simple package

pacman -Rnsc <package>

will do successfully the job

actually this option will remove the packages you don't need in cascade, so you won't need to do the first step of "unpurging" unused packages.
You may get few packages you won't need, but those packages will be very few.


and for the solution:
you should sync the packages of your server then install those packages as I said (with that big command using the "x" file)
then some packages won't be avaiable (maybe they are old and unused with the latest updates) so just remove those packages from the "x" file and try to install (using the command) again.

Last edited by quarkup (2009-10-23 19:23:29)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#5 2009-10-23 19:26:40

barii
Member
Registered: 2009-04-09
Posts: 21

Re: [solved] problem with pacman -R $(pacman -Qqdt)

the pacman can't download the files because the network isn't good. so i need to download every package manually (one by one) in an other system. So a like to download the packages what i reali need to prepare the system. Can you tell me which packages really important for me?

where the pacman download files?

Last edited by barii (2009-10-23 20:08:39)

Offline

#6 2009-10-23 20:09:51

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [solved] problem with pacman -R $(pacman -Qqdt)

that I cannot tell you (the system is your's so I don't know what really you would use)

i think that pacman will "continue" the download of the packages if you try few times..


good luck big_smile


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#7 2009-10-23 20:24:08

barii
Member
Registered: 2009-04-09
Posts: 21

Re: [solved] problem with pacman -R $(pacman -Qqdt)

big_smile ok, i reinstalled all of the packages, and everything is ok.. but now i don't know what package important and which is what i can remove

thank you for the halp

Offline

#8 2009-10-24 18:53:46

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [solved] problem with pacman -R $(pacman -Qqdt)

big_smile

don't forget to mark this thread as solved (as explained in the stickies)
and also, you should get a better title like

"[solved] problem with pacman -R $(pacman -Qqdt)"

no prob, glad to help
big_smile


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB