[blag-whereto] grabbing sources for package building
john maclean
jayeola at gmail.com
Sun Jul 26 14:15:05 BST 2009
# This is applicable for CentOS, Fedora, BLAG and most other rpm-based distros..
# none of this stuff is done as root.
yumdownloader --urls emacs-nox
Loaded plugins: dellsysidplugin, dellsysidplugin2, fastestmirror, priorities
164 packages excluded due to repository priority protections
http://mirror.answerstolove.com/CentOS/5.3/os/x86_64//CentOS/emacs-nox-21.4-20.el5.x86_64.rpm
# I can now get the rpm for the emacs-nox package...
wget http://mirror.answerstolove.com/CentOS/5.3/os/x86_64//CentOS/emacs-nox-21.4-20.el5.x86_64.rpm
# create a new dir for this package. i want to play with it
[jmaclean at jmac dump]$ mkdir emacs-nox
[jmaclean at jmac dump]$ mv emacs-nox-21.4-20.el5.x86_64.rpm emacs-nox
[jmaclean at jmac dump]$ cd emacs-nox/
# list the files in the rpm...
rpm2cpio emacs-nox-21.4-20.el5.x86_64.rpm | cpio -itv
lrwxrwxrwx 1 root root 19 Jun 15 2008 ./usr/bin/emacs
-> /usr/bin/emacs-21.4
-rwxr-xr-x 1 root root 192 Jun 15 2008 ./usr/bin/emacs-21.4
drwxr-xr-x 3 root root 0 Jun 15 2008 ./usr/libexec/emacs
drwxr-xr-x 3 root root 0 Jun 15 2008 ./usr/libexec/emacs/21.4
drwxr-xr-x 2 root root 0 Jun 15 2008
./usr/libexec/emacs/21.4/x86_64-redhat-linux-gnu
-rw-r--r-- 1 root root 51521 Jun 15 2008
./usr/libexec/emacs/21.4/x86_64-redhat-linux-gnu/fns-21.4.1-nox.el
-rwxr-xr-x 2 root root 0 Jun 15 2008 ./usr/bin/emacs-21.4-nox
-rwxr-xr-x 2 root root 6219624 Jun 15 2008 ./usr/bin/emacs-nox
12252 blocks
# extract these files
rpm2cpio emacs-nox-21.4-20.el5.x86_64.rpm | cpio -idv
./usr/bin/emacs
./usr/bin/emacs-21.4
./usr/libexec/emacs
./usr/libexec/emacs/21.4
./usr/libexec/emacs/21.4/x86_64-redhat-linux-gnu
./usr/libexec/emacs/21.4/x86_64-redhat-linux-gnu/fns-21.4.1-nox.el
./usr/bin/emacs-21.4-nox
cpio: ./usr/bin/emacs-nox linked to ./usr/bin/emacs-21.4-nox
./usr/bin/emacs-nox
12252 blocks
--
John Maclean
07739 171 531
MSc (DIC)
Timezone: GMT
More information about the blag-whereto
mailing list