How do I convert a ‘.pages’ file to something unix-y?

I have a file with the extension ‘.pages´. I think that means iWork, but I’m not sure. Anyway, searching for “convert pages linux” produces a fair few false negatives! Does anyone happen to know a way to convert it to something reasonable on Linux? Answer Pages documents are zip-compressed archives. Unzip it and you’ll find … Read more

Arch Linux pacman specifying package version

I know that I can define wanted package version in pacman like shown in its manual pacman -S “bash>=3.2”. But how do I know what versions are available? I also know that pacman is creating copy of mirrors upon syncing in .db files in /var/lib/pacman/sync/, but those files are not human-readable. And what if I … Read more

How to compare a program’s version in a shell script?

Suppose I want to compare gcc version to see whether the system has the minimum version installed or not. To check the gcc version, I executed the following gcc –version | head -n1 | cut -d” ” -f4 The output was 4.8.5 So, I wrote a simple if statement to check this version against some … Read more

Where to download Linux Kernel source code of a specific version?

Is there a resource to download a specific kernel version source? For example, I want to get sources to compare with this package and see what changes were introduced? Answer The easiest and most bandwidth-friendly way, if you expect to do this more than once, would be to clone the kernel’s git repository and … Read more

Convert between Unicode Normalization Forms on the unix command-line

In Unicode, some character combinations have more than one representation. For example, the character ä can be represented as “ä”, that is the codepoint U+00E4 (two bytes c3 a4 in UTF-8 encoding), or as “ä”, that is the two codepoints U+0061 U+0308 (three bytes 61 cc 88 in UTF-8). According to the Unicode standard, the … Read more

Convert a .xlsx (MS Excel) file to .csv on command line with semicolon separated fields

I realize that this is not an entirely unix/linux related question. But since this is something I’ll do on linux, I hope someone has an answer. I have an online excel file (.xlsx) which gets updated periodically (by someone else). I want to write a script and put it in as a cronjob in order … Read more

Is there a command-line tool for converting html files to pdf? [duplicate]

This question already has answers here: convert a html book to a pdf file? (4 answers) Closed 2 years ago. I would like to install a command line tool within a Docker image in order to quickly convert *html files into *pdf files. I am surprised there is not a Unix tool to do something … Read more

How to upgrade Debian stable (Wheezy) to testing (Jessie)? [duplicate]

This question already has an answer here: Making Debian Bleeding Edge (1 answer) Closed 8 years ago. I downloaded and installed Debian 7 Wheezy, the stable version, but I would like more recent apps and libs so I’d like to switch to testing version (aka Jessie). How do I proceed? Answer Simply switch your repos … Read more

What C library version does my system use?

How can I tell for sure what userland C library my system uses? Possible reasons to need this information include: There’s a gigantic source package I am considering downloading which I’m sure will do proper checks and lists a mininum library version, but I’d rather save myself a potential hassle by checking first if it … Read more