Where did you get libgio.so
? On most Linux distributions, there's an automatic way of retrieving the source code of a package.
For example, on Debian, Ubuntu and derived distributions, run dpkg -S
to see what package libgio.so
belongs to, then apt-get source
to get the source code of that package. Example ($
represents my shell prompt; on my system, the gio library is in a file called libgio-2.0.so
):
$ dpkg -S libgio-2.0.so
libglib2.0-dev: /usr/lib/libgio-2.0.so
libglib2.0-0: /usr/lib/libgio-2.0.so.0
$ apt-get source libglib2.0-0
I think I would suggest not installing these items from source directly but rather harness the power of your package manager to still maintain these packages.
locally installing
You can use a command line tool such as curl
or wget
to still download the packages necessary to install them either using yum
or rpm
directly.
$ sudo yum localinstall some.rpm
-or-
$ sudo rpm -ivh some.rpm
I would suggest looking to the repositories RepoForge as well as EPEL for RPMs. For example the git
packages are here.
A simple command in the terminal will download it:
$ wget http://pkgs.repoforge.org/git/git-1.7.10.4-1.el6.rfx.x86_64.rpm
Rebuilding a source RPM
On the off chance you have to have the latest versions, you can still make use of RPMs but rather than download the .rpm
version of a package, you'll want to get the .src.rpm
version. These can be rebuilt using the following command:
$ rpmbuild --rebuild some.src.rpm
Rebuilding a tar.gz using a donor source RPM
You can also take your .tar.gz
tarballs and reuse the .spec
file that's included in the above .src.rpm
. You do this through the following commands.
$ mkdir -p ~/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
Then create a ~/.rpmmacros
file.
%packager Your Name
%_topdir /home/YOUR HOME DIR/rpm
%_tmppath /home/YOUR HOME DIR/rpm/tmp
Now we're ready to "install" the donor .src.rpm
.
$ rpm -ivh some.src.rpm
This will deposit a tarball and a .spec
file in your ~/rpm
directories. You can then edit this .spec
file and replace the tarball with the newer one.
Now to rebuild it:
$ rpmbuild -ba ~/rpm/SPECS/some.spec
This will create a .rpm
and a new .src.rpm
file once it's complete.
Additional tips
You can use the tool yum-builddep
to make sure you have all the required RPMs installed before getting started.
$ sudo yum-builddep some.src.rpm
Best Answer
Uptime is part of the 'procps' package, the upstream source is at http://procps.sourceforge.net/ (Not a fedora user, so not sure where to find their .src.rpm).
To answer the question you didn't ask, however; take a look in /proc/uptime The first number is seconds since boot. You should be able to turn that into something usable fairly easily :)