Can you use Zlib or Libarchive in RTEMS? - rtems

Was wondering if it was possible to use Zlib or libarchive to compress and decompress files in rtem?

I don't know when it has been imported but there is some version of zlib available in cpukit/zlib: https://git.rtems.org/rtems/tree/cpukit/zlib?id=8d989c56ff0c65beb7ec3390aebef6ea52840fab
You should be able to use that out of the box without adding anything.

Related

Yocto build tips

When I build yocto, there are some files that has larges size and they take me a lot of time to dowload.
I tried placing them in sources/ but doing this is otiose. My question: Is there any way to pass checksum mechanism of yocto?
Thankyou so much for any helping!
The checksum in Yocto is used to make sure that downloaded files are not corrupted or tampered with.
Instead of trying to bypass the checksum mechanism, you can try using a download accelerator or mirror to download the files more quickly.
You can also use a cache server to store the downloaded files, so you
don't have to download them again in the future.
If you need to re-download a file that was partially downloaded or
corrupted, you can use the bitbake command with the -f flag to force
a download.

Buildroot packages summary

I have built Embedded system image using buildroot. I want to know what all packages built for the rootfs. Buildroot will create any file with the summary of packages built and their versions?
Try: make legal-info and look in output/legal-info for the manifest.csv
You can also try make show-info.

How to check a file's MIME type

I am working with Koha — An Integrated Library System (ILS) written in Perl. I need to check the MIME type of each uploaded file for security purposes.
Some search results from Google suggest that we can do it with the help of the File::MimeInfo Perl module.
How can we install the File::MimeInfo module in Koha and check the MIME types, or is there some better way?
What I use is Image::ExifTool it can do a format check on some of the mime types and point out files with errors. Its not made as a security program so it can have some faults in that area, but its an active distribution.
You can install the module by placing the folder /lib in the modules tarball on the server then add this line of Perl code to your script use lib '/path/to/lib'; .

How to view wget source code?

I've gone to this link http://ftp.gnu.org/gnu/wget/
and downloaded different versions, but I have no idea how to actually unpack it.
You don't need to download it. Take a look at their source code repository and read everything using your browser. Here's main.c for example. More details available at How to Access the Wget Source Code Repository.
tar.gz is a common extension for files that have been "tarred" ("tape archive", using the "tar" program), and "gzipped".
Most Linux systems come with these pre-installed, so you can extract the files using something like this:
tar xf wget-1.13.tar.gz
In Windows, use some unzipper program such as 7-Zip, WinZip, or WinAce or use tar from mingw/cygwin.

How to unzip/extract 7z compressed files in ios

I need to unzip/extract 7z compressed files in ios, Can anyone say the libraries used to do this,where are those libraries available to download.I there any sample project to do this ,let me know
7-Zip Lzma SDK - is a multi-language SDK for handling 7-zip files. Mo Dejong has created an example demonstrating how to use the LZMA SDK to decompress 7-zip libraries on iOS devices. You can find the example on his website here.
iOS9 comes with LZMA support (encoder until level 6, decoder all levels). Of course this only helps if you just need the compression – if you absolutely need to read the 7z archive / container format you'll need an external library.
https://developer.apple.com/library/prerelease/ios/documentation/Performance/Reference/Compression/index.html