<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It helps, but I don't see an example that really works for me. Do I flag a<br>

complete package name, or leave off the version part? Do I need both lock and<br>
multi-version flags set in order to have multiple kernels? Is there a plain<br>
text config file that I can just edit instead of typing flag commands?<br>
</blockquote><div><br>You can specify by the exact version and package or the entire "group". I flag things like the kernel and large packages like OpenOffice because they're huge downloads and/or disruptive in an automated environment.<br>
<br>      smart flag --set lock kernel<br> <br>This will flag all kernels. To show all files that are locked do this.<br><br>    smart flag --show lock<br><br>If you'd like to get more info on the locked files follow up with a smart info <br>
<br>    smart info kernel<br><br><div style="margin-left: 40px;">Name: kernel<br>Version: 2.6.18-53.1.6.el5@i686<br>Priority: 5<br>Group: System Environment/Kernel<br>Installed Size: 36.4MB<br>Reference URLs: <br><b>Flags: lock, multi-version</b><br>
Channels: CentOS 5 - i386 - updates<br>Summary: The Linux kernel (the core of the Linux operating system)<br>Description:<br> The kernel package contains the Linux kernel (vmlinuz), the core of any<br> Linux operating system.  The kernel handles the basic functions<br>
 of the operating system:  memory allocation, process allocation, device<br> input and output, etc.<br></div><br>If you're line to lock a specified file actually locks more than one you will see it in the output to smart info. The smart lock feature isn't that smart though because you can lock anything including packages that don't even exist.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anyway, next step in Factory is to finish the upgrade with Smart, a bloody<br>
nuisance compared to urpmi that usually needs baby sitting. Smart virtually<br>
always fails to grab one or more packages out of any package list consisting<br>
of more than just a few. So I either have to rerun several times the same<br>
exact command until it stops missing packages that timed out, or find the<br>
missing packages on another mirror with mc and copy them to<br>
/var/lib/smart/packages, so that Smart can actually install any of them,<br>
since it won't install any until they've all been somehow downloaded.</blockquote><div><br>You can set up mirrors with the smart mirror --add command.<br>Syntax:<br>   smart mirror --add <channel> <mirror><br>
<br>Example:<br>   smart mirror --add <a href="ftp://origin.url/some/path/">ftp://origin.url/some/path/</a> <a href="http://mirror.url/path/">http://mirror.url/path/</a><br><br>You can show your mirrors with the smart mirror --show command<br>
<div style="margin-left: 40px;">[root@MSL-2 bin]# smart mirror --show<br><a href="http://mirrors.kernel.org/centos/5/extras/i386/">http://mirrors.kernel.org/centos/5/extras/i386/</a><br>    <a href="http://yum.math.hmc.edu/os/centos/5/extras/i386/">http://yum.math.hmc.edu/os/centos/5/extras/i386/</a><br>
    <a href="http://mirror.stanford.edu/yum/pub/centos/5/extras/i386/">http://mirror.stanford.edu/yum/pub/centos/5/extras/i386/</a><br>    <a href="http://www.ossmirror.com/pub/centos/5/extras/i386/">http://www.ossmirror.com/pub/centos/5/extras/i386/</a><br>
    <a href="http://mirror.chpc.utah.edu/pub/centos/5/extras/i386/">http://mirror.chpc.utah.edu/pub/centos/5/extras/i386/</a><br><br></div>The non-indented line is the channel and the four lines after it are the mirrors. To save time in setting this up you can create a channels.txt file that looks like this.<br>
<br>channels.txt: <br><br><div style="margin-left: 40px;">[atrpms]<br>type = rpm-md<br>name = CentOS 5 - i386 - atrpms<br>baseurl = <a href="http://dl.atrpms.net/el5-i386/atrpms/stable">http://dl.atrpms.net/el5-i386/atrpms/stable</a><br>
<br>[rpmforge]<br>type = rpm-md<br>name = CentOS 5 - i386 - rpmforge<br>baseurl = <a href="http://apt.sw.be/redhat/el5/en/i386/dag">http://apt.sw.be/redhat/el5/en/i386/dag</a><br></div><br>Now just import it like this..<br>
 <br><div style="margin-left: 40px;">smart channel --add channels.txt<br></div><br>After you have the channels imported you can import a mirrors.txt file the same way.<br>mirrors.txt:<br><br><div style="margin-left: 40px;">
<a href="http://mirrors.kernel.org/centos/5/os/i386/">http://mirrors.kernel.org/centos/5/os/i386/</a><br>        <a href="http://yum.math.hmc.edu/os/centos/5/os/i386/">http://yum.math.hmc.edu/os/centos/5/os/i386/</a><br>        <a href="http://mirror.stanford.edu/yum/pub/centos/5/os/i386/">http://mirror.stanford.edu/yum/pub/centos/5/os/i386/</a><br>
        <a href="http://www.ossmirror.com/pub/centos/5/os/i386/">http://www.ossmirror.com/pub/centos/5/os/i386/</a><br>        <a href="http://mirror.chpc.utah.edu/pub/centos/5/os/i386/">http://mirror.chpc.utah.edu/pub/centos/5/os/i386/</a><br>
<br><a href="http://mirrors.kernel.org/centos/5/centosplus/i386/">http://mirrors.kernel.org/centos/5/centosplus/i386/</a><br>        <a href="http://yum.math.hmc.edu/os/centos/5/centosplus/i386/">http://yum.math.hmc.edu/os/centos/5/centosplus/i386/</a><br>
        <a href="http://mirror.stanford.edu/yum/pub/centos/5/centosplus/i386/">http://mirror.stanford.edu/yum/pub/centos/5/centosplus/i386/</a><br>        <a href="http://www.ossmirror.com/pub/centos/5/centosplus/i386/">http://www.ossmirror.com/pub/centos/5/centosplus/i386/</a><br>
        <a href="http://mirror.chpc.utah.edu/pub/centos/5/centosplus/i386/">http://mirror.chpc.utah.edu/pub/centos/5/centosplus/i386/</a><br></div><br><div style="margin-left: 40px;">smart mirror --add mirrors.txt<br></div>
<br>This way you'll have multiple smart mirrors per channel and it should cut down on some of the failures... <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Urpmi bunches smallish related groups of packages for download and<br>
installation, which means only those groups fail for lack of a single file<br>
rather than 100% of the whole upgrade list. Of course, rerunning Smart means<br>
extra waiting on recalculating the cache and recalculating the upgrade list<br>
each rerun, even though nothing has changed sinc...<br></blockquote><div><br>Yes, we've all talked about this before. I'd love to see sub lists of dependencies made so that groups are installed at a time instead of everything being installed at the end. Having it check disk space before downloading packages would be nice and maybe have it installl one group while it's downloading another would make it faster too.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It's almost enough grief to make me try zypper dup instead. :-p<br>
<div><div class="Wj3C7c"></div></div></blockquote><div><br>Now you're just being silly! :-)<br><br></div></div><br>Grant<br clear="all"><br><br>