How to create one rpm package which only contains specified directory?
Michael Barto
mbarto at logiqwest.com
Tue Jun 30 23:57:35 UTC 2009
This link may be of help. http://www.logiqwest.com/TechnicalPapers/rpmScriptInstall.html
On May 14, 2009, at 12:19 AM, He Yunlong-B20256 wrote:
> Hi, Experts,
>
> I have one directory like this (about 300M, over 50000 files):
>
> /opt/xxx/usr/local/gcc-4.3-binutils-2.18
>
> I want to create one rpm package for it, when installing the rpm
> package, it should extract the files and put it to the same location
> (/opt/xxx/usr/local/gcc-4.3-binutils-2.18)
>
> finally I got the package, but when installing the rpm, it hangs
> with only printing out "preparing...", then I have to kill it manually
>
> [sstims at harry_rh52 ~]$ sudo rpm -Uvh --nodeps --nofiles --
> noscript --nomd5 cs-xxx.rpm
> Preparing... Killed
> with help of strace, it hangs with mmap2 system call
>
> #sudo strace rpm -ivh cs-xxx.rpm
> ...
> mremap(0x545a6000, 1616502784, 1616506880, MREMAP_MAYMOVE) =
> 0x545a6000
> pread64(6, "\0\0\0\0\1\0\0\0\363\1\0\0\0\0\0\0\0\0\0\0\214\0a
> \7\0\2\367\17\356\17\346\17"..., 4096, 2043904) = 4096
> mmap2(NULL, 1077669888, PROT_READ|PROT_WRITE, MAP_PRIVATE|
> MAP_ANONYMOUS, -1, 0) = 0x141e7000
> Killed
> I restart the machine and run "sudo rpm --rebuilddb", but still
> failed.
>
> If I package it with fewer files, it can be installed, but still
> very slow. The most strange issue is that it need much memory when
> installing the rpm package, about 800M is used, but finally hang.
>
> Can you help to have a look on this issue?
>
> I build the rpm package with rpm 4.0.4, and install
> the package with rpm 4.4.2
> I failed to create the rpm package with rpm 4.4.2,
> segment fault occured.
>
> B.R.
> Harry
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
Michael Barto
Software Architect
LogiQwest Inc. Email:mbarto at logiqwest.com
16458 Bolsa Chica Street, # 15 Cell: 714 883 1949
Huntington Beach, CA 92649 Fax: 714 840 3937
http://www.logiqwest.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090630/5e7916ee/attachment.htm>
More information about the Rpm-list
mailing list