In the second part of our session on managing software packages, we're going to look at the Command Line interface for IPS and use the Package Commands, the PKG. Now using the Command Line interface is a little bit less intuitive than the GUI. However, if you're a Command Line junkie like a lot of Unix and Linux folks are then it should come easy to you. Now the Command Line interface does everything that Package Manager the GUI does and a lot, lot more. It's really easy to use Package Manager but it's just as easy to use the Package Commands. Here's a format listed on the screen that you would use, you would just use the PKG or Package Command and then there usually will be a subcommand after that and then options. You might see things like Package Install or Package Update or Package Set Publisher. And in fact in the example on the screen we have, we are going to use this example to add a new publisher to the publisher set for IPS. So let's go ahead and do that real quick. Let's look at the Package Commands of the Command Line interface. Okay. We're at the Command Line here, let's clear this up a little bit. And what we're going to do first is look at Package Help and Package Help will give us some users information on the Package Command itself. And if we scroll up just a touch here we can see the different options and so forth that you can have for Package. And there's a lot of different things you can do here obviously. And many of those we won't go over. However, I would recommend that you look at them for the exam. Mostly what you'll be tested on will be the very basic of Package Management. But it would help to look at all the different options available to you. Some of the things you may see on the exam and some of the things you may be expected to do on a daily basis are things like List Packages. And we're going to pipe this into the More Command so we can see a little bit better. And this is every package that's on the box. And there's a lot of them here and we saw this listing in the GUI, it just had a different format. And because of the way I've got my screen size set up for the recording it's a little wonky but if you view it in your Terminal with the defaults, then you should see a very clean looking listing here and we can just hit Q to quit here. Now another thing we can do is look and see if there's any updates for packages. Simply by typing Package Update and it's going to do a lot of the same things we saw earlier in the Package Manager GUI. It's going to go look at the repository, refresh the catalog and then go and see if there's anything else out there that needs to be updated such as patches security things, security patches rather and applications. Okay. Note updates are available for this image, so we're doing good. The other thing we can do is look at things like the publishers and that should just tell us Solaris because that's the only publisher we have listed right now. Let's go ahead and add a publisher and we're going to add the one we just spoke about earlier. Now this is a community publisher, the Open Indiana Project and it can give you some really good software packages for Solaris 11. And all we need to do is do, put our command in, Package and our optional commands. Set Publisher, we'll put information we need in there. Now I would highly recommend that you look at some of the options that you're going to see because you may need to know them and of course we probably can't teach you every single option there is for the Package Commands. There's just a lot of them but it would help if you just took a look at them while you're on and kind of get an idea what they generally do. Alright. Let's go ahead and add this publisher, it's going to go out on the Internet, it's going to look at the catalogs and there we go. Now we have added a new publisher. Now if we go ahead and do a Package Publisher again. Then we'll see that there are two different publishers in there now. So we've added a publisher and again there's all these different things you can do with the Command Line that you couldn't really do at the GUI. We can actually look for packages by their extensions, the type of package they are. We can verify a package, we can look at package install histories and do quite a few things. We can unset publishers, we can add publishers obviously as you saw. So we can do a lot of things. The one thing you need to understand is that there is so many things you can do, you probably need to take the time to go in and play with this command a little bit especially before the exam. We can teach you the basics and learn how to do some of the basic day to day things but in order to get into the really heavy stuff it's probably going to take some studying and memorization on your part. So that's the essentials of the Package Command at the Command Line interface IPS. Now we've talked about the GUI and the Command Line interface now and you can use either one it doesn't matter. And in, in a later session we're going to talk about the boot environment with IPS.
| Course: | Oracle Solaris 11 System Administration - Exam 1Z0-821 |
| Author: | Bobby Rogers |
| SKU: | 34398 |
| ISBN: | 978-1-61866-083-1 |
| Release Date: | 2012-12-24 |
| Duration: | 8 hrs / 92 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |