Page 1 of 1

rpmdrake - installing without suggested packages[SOLVED]

PostPosted: Jul 22nd, '11, 13:13
by mt12345
Hi! I've been Debian/Ubuntu user for couple of years. As I was using Mandrake/Mandriva in past, I was curious how Mandriva is progressing. And I discovered Mageia. I installed it using dual-arch install CD because I'm fan of LXDE. I must say installer is very impressive, I was able to tweak many things. After installation wireless card works out of box and there is a nice network manager.
Generally I like to keep my system neat and minimal.
I'm trying to install wine-gecko:

Code: Select all
[martin@localhost ~]$ sudo urpmi wine-gecko
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release (distrib1)")
  gimp                           2.6.11       6.mga1        i586    (suggested)
  gimp-help-2-en                 2.6.0        3.mga1        noarch  (suggested)
  jackit                         1.9.6        1.mga1        i586    (suggested)
  libOpenEXR6                    1.7.0        1.mga1        i586    (suggested)
  libSDL1.2_0                    1.2.14       4.mga1        i586    (suggested)
  libaa1                         1.4.0        0.rc5.22.mga1 i586    (suggested)
  libavc1394_0                   0.5.3        8.mga1        i586    (suggested)
  libbabl0.1_0                   0.1.2        3.mga1        i586    (suggested)
  libcroco0.6_3                  0.6.2        7.mga1        i586    (suggested)
  libdc1394_22                   2.1.2        7.mga1        i586    (suggested)
  libdirectfb1.4_5               1.4.11       2.mga1        i586    (suggested)
  libdri-drivers                 7.10.2       4.mga1        i586   
  libffado2                      2.0.1        4.mga1        i586    (suggested)
  libfreebob0                    1.0.11       6.mga1        i586    (suggested)
  libgegl0.1_0                   0.1.2        3.mga1        i586    (suggested)
  libggi                         2.2.2        16.mga1       i586    (suggested)
  libggi2                        2.2.2        16.mga1       i586    (suggested)
  libgii1                        1.0.2        15.mga1       i586    (suggested)
  libgimp2.0_0                   2.6.11       6.mga1        i586    (suggested)
  libglibmm2.4_1                 2.25.5       2.mga1        i586    (suggested)
  libiec61883_0                  1.2.0        4.mga1        i586    (suggested)
  libilmbase6                    1.0.2        2.mga1        i586    (suggested)
  libjack0                       1.9.6        1.mga1        i586    (suggested)
  liblcms1                       1.19         5.mga1        i586   
  libmesagl1                     7.10.2       4.mga1        i586   
  libmesaglu1                    7.10.2       4.mga1        i586   
  libmng1                        1.0.10       13.mga1       i586    (suggested)
  libmpg123_0                    1.13.1       2.mga1        i586   
  libopenal1                     1.12.854     3.mga1        i586   
  libopenjpeg2                   1.3          7.mga1        i586    (suggested)
  libopenraw1                    0.0.8        5.mga1        i586    (suggested)
  liborc0.4_0                    0.4.11       1.mga1        i586    (suggested)
  libpoppler-glib6               0.16.5       1.mga1        i586    (suggested)
  libpoppler13                   0.16.5       1.mga1        i586    (suggested)
  libraw1394_11                  2.0.6        2.mga1        i586    (suggested)
  librsvg2_2                     2.32.1       1.mga1        i586    (suggested)
  librtmp0                       2.3          3.mga1        i586    (suggested)
  libschroedinger1.0_0           1.0.10       1.mga1        i586    (suggested)
  libsigc++2.0_0                 2.2.8        2.mga1        i586    (suggested)
  libtheoradec1                  1.1.1        3.mga1        i586    (suggested)
  libtheoraenc1                  1.1.1        3.mga1        i586    (suggested)
  libva1                         1.0.12       1.mga1        i586    (suggested)
  libvncserver0                  0.9.7        4.mga1        i586    (suggested)
  libwmf0.2_7                    0.2.8.4      22.mga1       i586    (suggested)
  libxaw7                        1.0.9        1.mga1        i586   
  libxml++2.6_2                  2.34.1       1.mga1        i586    (suggested)
  openal                         1.12.854     3.mga1        i586   
  poppler-data                   0.4.4        2.mga1        noarch  (suggested)
  poppler-gir0.16                0.16.5       1.mga1        i586    (suggested)
  sane-frontends                 1.0.14       11.mga1       i586    (suggested)
  urw-fonts                      2.0          28.mga1       noarch  (suggested)
  wine                           1.3.20       2.mga1        i586   
  wine-gecko                     1.2.0        1.mga1        i586   
  wine32                         1.3.20       2.mga1        i586   
  x11-data-bitmaps               1.1.1        1.mga1        i586   
  xmessage                       1.0.3        2.mga1        i586   
(medium "Tainted Release (distrib21)")
  libavformats52                 0.6.3        2.mga1.taint> i586    (suggested)
  libavutil50                    0.6.3        2.mga1.taint> i586    (suggested)
  libfaad2_2                     2.7          2.mga1        i586    (suggested)
  libffmpeg52                    0.6.3        2.mga1.taint> i586    (suggested)
  liblame0                       3.98.4       2.mga1        i586    (suggested)
  libopencore-amr0               0.1.2        3.mga1        i586    (suggested)
  libswscaler0                   0.6.3        2.mga1.taint> i586    (suggested)
  libvo-aacenc0                  0.1.1        2.mga1.taint> i586    (suggested)
  libvo-amrwbenc0                0.1.1        2.mga1.taint> i586    (suggested)
  libx264_110                    0.110        0.20101203.2> i586    (suggested)
285MB of additional disk space will be used.
77MB of packages will be retrieved.
Proceed with the installation of the 66 packages? (Y/n)


I don't need gimp, so:
Code: Select all
[martin@localhost ~]$ sudo urpmi wine-gecko --no suggest


Much better.
Now: How to configure rpmdrake so it doesn't install 'suggested' packages?

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 13:35
by wobo
mt12345 wrote:Now: How to configure rpmdrake so it doesn't install 'suggested' packages?

To the best of my knowledge this is not possible. rpmdrake (like most GUIs) does not provide all functionalities which are possible with the CLI tool.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 13:47
by ahmad
rpmdrake uses urpmi to install packages, you can edit /etc/urpmi/urpmi.cfg, change the top part like this:
Code: Select all
{
  no-suggests
}

(the curly brackets { } are already there at the top of the file, just add no-suggests between them on a separate line).

For more info check the man page:
Code: Select all
man urpmi.cfg

(or if you have KDE4, and prefer reading man pages in html format, in konqueror "man#urpmi.cfg" or "man:urpmi.cfg").

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 14:04
by mt12345
Thanks!
('man' was not installed by default, why?)
I don't like KDE. Prefer GNOME but my favourite is LXDE.

How to clean urpmi cache? How to search for packages in command line?

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 14:19
by ahmad
How did you install Mageia? man is installed by default, AFAIK (unless you used the DVD and did a custom install..).

The urpmi cache is cleaned by default after each urpmi full transaction (check /var/lib/urpmi/rpms).

To search for packages use urpmq:
urpmq -fy partial-package-name

e.g.:
Code: Select all
$ urpmq -fy wine
lib64kwineffects1-4.6.95-1.mga2.x86_64
wine64-1.3.24-1.mga2.x86_64
wine64-devel-1.3.24-1.mga2.x86_64
wine64-gecko-1.2.0-1.mga1.x86_64

see the urpmq man page for more details on usage.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 14:32
by wobo
ahmad wrote:rpmdrake uses urpmi to install packages, you can edit /etc/urpmi/urpmi.cfg, change the top part like this:
Code: Select all
{
  no-suggests
}

Ah, I looked for a man page for rpmdrake - wrong thinking.
As said before, I'm learning new things every day, even after using Mandrake/Mandriva/Mageia for 12 years (did not care for that option before). Thx!

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 14:37
by mt12345
Yep, I did custom install. I must have unchecked 'docs' section or something. Anyway,man just installed.
urpmq -fy works fine, but I would like to search in package description too.
In debian I can do:
apt-cache search rpg
and I get list of all rpg games I can install.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 14:48
by doktor5000
Have a look at man urpmq and man urpmf ;)

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 15:04
by ahmad
mt12345 wrote:Yep, I did custom install. I must have unchecked 'docs' section or something. Anyway,man just installed.
urpmq -fy works fine, but I would like to search in package description too.
In debian I can do:
apt-cache search rpg
and I get list of all rpg games I can install.

I don't know of a way to search in package descriptions using urpmq; however rpmdrake can do it, click the small magnifying glass icon on the left in the search box and select "in descriptions".

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 15:17
by mt12345
I know, but I want to do it in terminal. Since rpmdrake uses urpm* there must be some way? I didn't find it in man pages.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 15:40
by ahmad
mt12345 wrote:I know, but I want to do it in terminal. Since rpmdrake uses urpm* there must be some way? I didn't find it in man pages.

I think for that function rpmdrake isn't just using the urpm* tools, but also some other perl code to accomplish this feat.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 15:47
by doktor5000
What about urpmf --description?

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 16:17
by mt12345
doktor5000 wrote:What about urpmf --description?


Oh,dear. It works! I just used wrong example:

urpmf --description rpg

It gives no results, because there is no games (or any packages) with 'rpg' in description!
But when I tried again:

urpmf --description strategy

'Battle of Wesnoth' and other games were found.

Thanks!

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 16:33
by ahmad
I've never used urpmf --description, noting it down for future reference.

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 22nd, '11, 16:47
by doktor5000
FWIW, because the OP also asked that, i'm searching packages with a custom alias which is easy and fast to type if you need it often:
Code: Select all
[doktor5000@mageia1 ~]$ alias ufn
alias ufn='urpmf -f -m --name'

Shows the name of a package, version information and the repository where the package comes from.

With urpmf, you can also search for groups, in package summary, fuzzy search (shows more packages which may not have the exact name)

Re: rpmdrake - installing without suggested packages

PostPosted: Jul 24th, '11, 12:49
by isadora
Thanks doktor5000 for this information, i have archived it.

So, that brings this topic into [SOLVED]-status?

Re: rpmdrake - installing without suggested packages[SOLVED]

PostPosted: Jul 25th, '11, 13:00
by Germ
I think so. I'm going to mark it 'solved'.