RPM Based : Mandriva Mdk RH SuSe
rpm -ql packagename # dpkg -L
rpm -qlp file.rpm
apt-file search rpm -qf /usr/bin/free apt-cache show $package rpm -q --info $package apt-cache rdepends rpm -e apt-get install build-essential sudo yum groupinstall "Development Tools" apt-build # TODO ? DownLoad? apt-src zypper source-install
http://lilypond.org/blog/jan/software/suse/zypper-build-dep
rpmbuild -ba ~/rpmbuild/SPECS/*.spec
SpeC :
yum --releasever=rawhide distro-sync
fakeroot alien --to-deb *.i386.rpm error: cannot open Packages index using db3 - No such file or directory (2) ... rpm --initdb
dpkg-gencontrol: error: current host architecture 'i386' does not appear in package's architecture list ($TARGET_ARC)
root:~> zypper ref -r $reponame error: rpmdb: Thread/process 891/140483342870336 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 - (-30974) error: cannot open Packages database in /var/lib/rpm Target initialization failed: Rpm Exception Failed to cache rpm database (1). Please see the above error message for a hint. # solution : rpm --rebuilddb
ftp://ftp.free.fr/mirrors/ftp.mandrake-linux.com/Mandrakelinux/official/10.0/iso/i586/
Linux Mandrake 9.2 http://www.urpmi.org/easyurpmi/index.php
rpm2cpio ../*.rpm | cpio -id
urpmi.addmedia main ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake/official/9.2/i586/Mandrake/RPMS with ../base/hdlist.cz urpmi.addmedia contrib ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake/official/9.2/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz urpmi.addmedia plf ftp://ftp.proxad.net/pub/Distributions_Linux/plf/mandrake/9.2 with hdlist.cz urpmi.addmedia --update updates ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake/official/updates/9.2/RPMS with ../base/hdlist.cz
file:///etc/urpmi/urpmi.cfg
Update :
urpmi --auto --auto-select
ed2k://|file|OOo_2.0.0rc1_050923_LinuxIntel_install.tar.gz|106462692|598aa4a0f0f75a92090e0c0a9cd4b805|
http://linuxfr.org/2005/09/01/19505.html
Debian : http://people.debian.org/~rene/openoffice.org/
# [[ToDo]] [[Debian]] : Testing alien... find OOO680_m1_native_packed-5_en-US.8958/ -name "*.rpm" -exec fakeroot alien {} \; sudo apt-get remove \ openoffice.org \ openoffice.org-base \ openoffice.org-core01 \ openoffice.org-core02 \ openoffice.org-core03 \ openoffice.org-core04 \ openoffice.org-core05 \ openoffice.org-core06 \ openoffice.org-core07 \ openoffice.org-core08 \ openoffice.org-core09 \ openoffice.org-core10 \ openoffice.org-writer \ openoffice.org-javafilter \ openoffice.org-xsltfilter \ openoffice.org-debian-menus \ openoffice.org-spellcheck \ # remove on [[Debian]]
sudo apt-get install \ openoffice.org-base=2.0.0-2 \ openoffice.org-core01=2.0.0-2 \ openoffice.org-core02=2.0.0-2 \ openoffice.org-core03=2.0.0-2 \ openoffice.org-core04=2.0.0-2 \ openoffice.org-core05=2.0.0-2 \ openoffice.org-core06=2.0.0-2 \ openoffice.org-core07=2.0.0-2 \ openoffice.org-core08=2.0.0-2 \ openoffice.org-core09=2.0.0-2 \ openoffice.org-core10=2.0.0-2 \ openoffice.org-writer=2.0.0-2 \ openoffice.org-javafilter=2.0.0-2 \ openoffice.org-xsltfilter=2.0.0-2 \ openoffice.org-debian-menus=2.0.0 \ openoffice.org-spellcheck=2.0.0 \ # install on [[Debian]]
export LD_LIBRARY_PATH=/opt/openoffice.org2.0/program ; ldd /opt/openoffice.org2.0/program/soffice.bin linux-gate.so.1 => (0xffffe000) libvcl680li.so => not found libsvl680li.so => not found libsvt680li.so => not found libutl680li.so => not found libtl680li.so => not found libcomphelp4gcc3.so => not found libucbhelper3gcc3.so => not found libvos3gcc3.so => not found libuno_cppuhelpergcc3.so.3 => not found libuno_cppu.so.3 => not found libuno_sal.so.3 => not found libtk680li.so => not found libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x41919000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4258f000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x42576000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41558000) libdl.so.2 => /lib/tls/libdl.so.2 (0x4118f000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4117b000) libstlport_gcc.so => not found libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7e84000) libm.so.6 => /lib/tls/libm.so.6 (0x41153000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4154b000) libc.so.6 => /lib/tls/libc.so.6 (0x41019000) /lib/ld-linux.so.2 (0x41000000)
* https://fedoraproject.org/wiki/Packaging:RPMMacros?rd=Packaging/RPMMacros
grep -r dir /usr/lib/rpm/* | grep ':%' | grep system less /etc/rpm/macros.systemd sh-4.2# rpm -E %install_service mkdir -p /usr/src/packages/BUILDROOT/%{name}-%{version}-%{release}.i386//usr/lib/systemd/system/%{1} ln -s ../%{2} /usr/src/packages/BUILDROOT/%{name}-%{version}-%{release}.i386//usr/lib/systemd/system/%{1}/%{2} grep -r dir /usr/lib/rpm/macros* | grep ':%'
rpm --eval '0%{?release:1}' 0 rpm --define 'release 42' --eval '0%{?release:1}' 01 rpm --define 'release 42' --eval '%{!?release:0}%{release}' 42 rpm --define 'released 42' --eval '%{!?release:0}%{?release}' 0