March 2012
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  
151

Refs

Categories

Archives

profile for slm on Stack Exchange, a network of free, community-driven Q&A sites

Delicious Bookmarks for March 11th through March 12th

These are my links for March 11th through March 12th:

[one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS

Background

I just came across this nifty little tool called yum-builddep, which is part of the yum-utils package. It can be a really big time saver if you need to build source RPMS (SRPMs). What does it do? yum-builddep, installs all the RPM dependencies required to build a given SRPM.

Solution

Installation is a snap, it’s just part of the yum-utils package on Fedora & CentOS.

1
yum install yum-utils

Once installed you can use it like so:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# on my Fedora 14 system
 
% yum-builddep sox
...
 
Dependencies Resolved
 
===========================================================================================
Package                     Arch          Version                    Repository        Size
===========================================================================================
Installing:
 flac-devel                 x86_64        1.2.1-6.fc12               fedora           605 k
 gsm-devel                  x86_64        1.0.13-2.fc12              fedora            13 k
 ladspa-devel               x86_64        1.13-6.fc12                fedora            18 k
 libao-devel                x86_64        1.0.0-2.fc14               updates           33 k
 libid3tag-devel            x86_64        0.15.1b-10.fc13            fedora           9.3 k
 libsamplerate-devel        x86_64        0.1.7-2.fc12               fedora           8.3 k
 libsndfile-devel           x86_64        1.0.25-1.fc14              updates          140 k
 libtool-ltdl-devel         x86_64        2.2.10-3.fc14              fedora           166 k
 pulseaudio-libs-devel      x86_64        0.9.21-7.fc14              updates          302 k
 wavpack-devel              x86_64        4.60.1-1.fc14              updates           50 k
Installing for dependencies:
 ladspa                     x86_64        1.13-6.fc12                fedora            34 k
 pulseaudio-libs-zeroconf   x86_64        0.9.21-7.fc14              updates           26 k
 
Transaction Summary
===========================================================================================
Install      12 Package(s)
 
Total download size: 1.4 M
Installed size: 8.6 M
Is this ok [y/N]:

Notice it’s determining what libraries and other RPMs are required to BUILD sox from source, not just what is needed to install sox. Here’s another example, probably more consistent with how most people will end up using yum-builddep, where you’ll use it as an aid in rebuilding a SRPM package.


…. Continue reading → [one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS »»