Blog

Categories

Blogroll

Installing src.rpm files Posted @ 16:47 on 15th April, 2008

So I'm a bit of a Linux n00b. I can find my way around the system, but I don't have vast expanses of knowledge regarding how to use it properly like a normal Computer Scientist should. So Google normally helps me out when I'm trying to do bits of server admin at work. Unfortunately, this is one thing I always forget how to do, and I've found there are few decent resources on how to actually do this. So here's one! It's probably more for my own purpose than for anyone else, but maybe someone will find it useful. Let's say you're trying to install a package, you've got the web address to the package and it's a .src.rpm. You'll want to do something like this:
  1. Navigate to a directory that you can use to temporarily store the src file
  2. Copy the address of the package to your clipboard
  3. Type: wget URL_TO_PACKAGE, obviously replacing the URL_TO_PACKAGE with the address you copied a minute ago
  4. Now in the directory you'll a file called something.src.rpm. You'll need root access for the rest of this - sudo or su will do fine.
  5. Type: rpm -ivh something.src.rpm
  6. This will have put a load of stuff under the /usr/src/redhat directories, where you'll find folders called RPMS, SPECS, SOURCES, and BUILD. Go into the SPECS folder. You'll see a file called something.spec
  7. Type: rpmbuild -bb something.spec
  8. This will produce a load of stuff on the terminal, and will have created the RPM in a subdirectory of the RPMS folder. If you look in there, you'll see that there are different folders for the different architectures, i386, noarch etc. In the babble the last command (rpmbuild -bb) produced, it will tell you where it's put the RPM. The line might look something like this: Wrote: /usr/src/redhat/RPMS/noarch/yum-2.4.3-1.noarch.rpm
  9. Go into this folder - in this case RPMS/noarch. You'll see something.rpm - which will relate to the one you just built. Type: rpm -ivh something.rpm, and the package will be installed!
And there we go! I would suggest however, this should be a final resort, especially for new comers to Linux. A much better solution is to use yum or apt, which do all the hard work for you. For example, using yum to install subversion, you do this as root: yum install subversion. How easy is that?

Permalink. 0 Comments. Posted under Websites.

Portfolio Update Posted @ 19:18 on 5th August, 2007

I have added another website onto my portfolio - a little fun one I made just to entertain myself and a handful of other people. If you've seen Family Guy, you will probably get it. Essentially, it tells you the current weather of the city you're in, but in the style of Oli Williams and his Blaccu Weather Report. Fun, no? The concept has been done before, but I didn't realise until halfway through development, and by that time I was far too much into it! I'm hoping to add a few extra features soon, probably some AJAX and Mootools to make it more visually appealing (although I quite like it's current simplicity), and add the feature to scroll through days to see what the weather will be like tomorrow and so on and so forth. Of course, it's pretty much a completely pointless website, but, I like it none the less. http://imaginaryroots.co.uk/blaccu Enjoy!

Permalink. 0 Comments. Posted under Websites.

Hello! Posted @ 12:56 on 4th August, 2007

First post! Exciting, no? So this is my blog. Hopefully I'm going to fill it with lovely things that I find interesting, things I find whilst I'm at uni or at work, or out and about generally. Normally, these things will be quite geeky, such is my nature. Hopefully, some of you will find it interesting! We shall see. I'm currently working on this site, it's been down for close to a year now I think, so it needed some work, and here it is. I quite like it, to be honest. Simple. I like simple. My favourite thing is probably the portfolio section, with the little slider thing,  which was inspired by the new Apple website. It's quite an easy bit of Mootools, but I think it's quite effective. I enjoy adding the little touches, like that, to the sites I work on. I think it's these things that turn a good site into a great site. This one, of course, is only a decent site, it will need a lot of work over the next while, but it'll do for now. Enjoy!

Permalink. 0 Comments. Posted under Websites.

<< previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
next >>