403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/yum-cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/yum-cli/yumcommands.pyc
Ñò
7ÛØJc@sIdZddkZddkZddklZddklZddkZddkZddkZddk	Z	ddk
Z
ddklZl
Z
lZddkZd„Zd„Zd„Zd	„Zd
„Zd„Zd„Zd
dFd„ƒYZdefd„ƒYZdefd„ƒYZdd„Zd„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZ d efd!„ƒYZ!d"efd#„ƒYZ"d$efd%„ƒYZ#d&efd'„ƒYZ$d(efd)„ƒYZ%d*efd+„ƒYZ&d,efd-„ƒYZ'd.efd/„ƒYZ(d0efd1„ƒYZ)d2efd3„ƒYZ*d4efd5„ƒYZ+d6efd7„ƒYZ,d8efd9„ƒYZ-d:efd;„ƒYZ.d<efd=„ƒYZ/d>efd?„ƒYZ0d@efdA„ƒYZ1dBefdC„ƒYZ2dDefdE„ƒYZ3dS(Gs<
Classes for subcommands of the yum command line interface.
iÿÿÿÿN(t
logginglevels(t_(t
utf8_widthtutf8_width_fillt
to_unicodecCs:|iidjo#|iitdƒƒti‚ndS(sd
    Verify that the program is being run by the root user.

    @param base: a YumBase object.
    is,You need to be root to perform this command.N(tconftuidtloggertcriticalRtclitCliError(tbase((s!/usr/share/yum-cli/yumcommands.pytcheckRootUID#scCs||iƒpkxh|iiƒD]S}|ip
|io9|idjo)tdƒ}|ii|ƒt	i
‚qqWndS(Nts

You have enabled checking of packages via GPG keys. This is a good thing. 
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
    rpm --import public.gpg.key


Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and yum 
will install it for you.

For more information contact your distribution or package provider.
(tgpgKeyChecktrepostlistEnabledtgpgcheckt
repo_gpgchecktgpgkeyRRRR	R
(Rtrepotmsg((s!/usr/share/yum-cli/yumcommands.pytcheckGPGKey-s
$
	cCsHt|ƒdjo1|iitdƒ|ƒ|iƒti‚ndS(Nis(Error: Need to pass a list of pkgs to %s(tlenRRRtusageR	R
(Rtbasecmdtextcmds((s!/usr/share/yum-cli/yumcommands.pytcheckPackageArgBs
	
cCsDt|ƒdjo-|iitdƒƒ|iƒti‚ndS(NisError: Need an item to match(RRRRRR	R
(RRR((s!/usr/share/yum-cli/yumcommands.pytcheckItemArgIs
cCsDt|ƒdjo-|iitdƒƒ|iƒti‚ndS(Nis%Error: Need a group or list of groups(RRRRRR	R
(RRR((s!/usr/share/yum-cli/yumcommands.pyt
checkGroupArgOs
cCs“d}t|ƒdjo'|iitd	ƒd
i|ƒƒnxL|D]D}||jo1|iitdƒ|ƒ|iƒti‚qGqGWdS(
Ntheaderstpackagestmetadatatdbcachetpluginssexpire-cachetallis#Error: clean requires an option: %ss, s!Error: invalid clean argument: %r(RRR R!R"sexpire-cachesall(RRRRtjoinRR	R
(RRRt
VALID_ARGStcmd((s!/usr/share/yum-cli/yumcommands.pyt
checkCleanArgUs

cCsÙt|ƒdjo|iitdƒƒn©t|ƒdjol|iitdƒ|dƒtii|dƒp4|iitdƒ|dƒ|i	ƒt
i‚qÕn*|iitdƒƒ|i	ƒt
i‚dS(s×
    Verify that the arguments given to 'yum shell' are valid.

    yum shell can be given either no args, or exactly one argument,
    which is the name of a file. If these are not met,
    raise cli.CliError.
    isNo argument to shellisFilename passed to shell: %ss2File %s given as argument to shell does not exist.s5Error: more than one file given as argument to shell.N(Rtverbose_loggertdebugRtostpathtisfileRRRR	R
(RRR((s!/usr/share/yum-cli/yumcommands.pyt
checkShellArgcs		
	

t
YumCommandcBsPeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(cCs
t|_dS(N(tFalsetdone_command_once(tself((s!/usr/share/yum-cli/yumcommands.pyt__init__~scGs4|ip|iiti||Œnt|_dS(N(R0R(tlogRtINFO_2tTrue(R1RRtargs((s!/usr/share/yum-cli/yumcommands.pytdoneCommands
cCsgS(N((R1((s!/usr/share/yum-cli/yumcommands.pytgetNames†scCs
t‚dS(sO
        @return: A usage string for the command, including arguments.
        N(tNotImplementedError(R1((s!/usr/share/yum-cli/yumcommands.pytgetUsage‰scCs
t‚dS(sG
        @return: A one line summary of what the command does.
        N(R9(R1((s!/usr/share/yum-cli/yumcommands.pyt
getSummaryscCsdS(N((R1RRR((s!/usr/share/yum-cli/yumcommands.pytdoCheck•scCsdtdƒgfS(sØ
        @return: (exit_code, [ errors ]) where exit_code is:
           0 = we're done, exit
           1 = we've errored, exit with error string
           2 = we've got work yet to do, onto the next stage
        is
Nothing to do(R(R1RRR((s!/usr/share/yum-cli/yumcommands.pyt	doCommand˜scCstS(N(R5(R1RRR((s!/usr/share/yum-cli/yumcommands.pytneedTs¡s(
t__name__t
__module__R2R7R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyR.|s								tInstallCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntinstall((R1((s!/usr/share/yum-cli/yumcommands.pyR8¥scCs
tdƒS(Ns
PACKAGE...(R(R1((s!/usr/share/yum-cli/yumcommands.pyR:¨scCs
tdƒS(Ns,Install a package or packages on your system(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;«scCs(t|ƒt|ƒt|||ƒdS(N(RRR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<®s

cCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Install Processi(R7RtinstallPkgstyumtErrorstYumBaseErrortstr(R1RRRte((s!/usr/share/yum-cli/yumcommands.pyR=³s
(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyRA¤s
				t
UpdateCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntupdate((R1((s!/usr/share/yum-cli/yumcommands.pyR8»scCs
tdƒS(Ns[PACKAGE...](R(R1((s!/usr/share/yum-cli/yumcommands.pyR:¾scCs
tdƒS(Ns+Update a package or packages on your system(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ÁscCst|ƒt|ƒdS(N(RR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<Äs
cCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Update Processi(R7Rt
updatePkgsRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=Ès
(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyRIºs
				R
cCst|iƒdt|iƒt|ƒ}t|iƒdt|iƒ}|idjo*d|ijot|iiƒd}nt|iƒ}|idjo|t|iƒd7}nxWd|fd|fd|ffD]4\}}||i	|dƒ|||cd7<qàWd	S(
sl Get the length of each pkg's column. Add that to data.
        This "knows" about simpleList and printVer. it	installedt	from_repot0tnatvertridiN(
Rtnametarchtversiontreleasetrepoidt
yumdb_infoRMtepocht
setdefault(tdatatpkgtindentRORPRQtdtv((s!/usr/share/yum-cli/yumcommands.pyt_add_pkg_simple_list_lensÏs*  "c	Cshhd6hd6hd6}xJ|i|i|i|i|ifD]$}x|D]}t||ƒqMWq@Wt|iƒdjo>x;|iD],\}}t||ƒt||ddƒqˆWn|d|d|dg}|i	|dd	ƒ}|d|d	|d
fS(sA Work out the dynamic size of the columns to pass to fmtColumns. RORPRQiR\t itremainder_columniis    (
RLt	availabletextrastupdatestrecentR_Rt	obsoletestobsoletesTuplestcalcColumns(RtyplRZtlstR[tnpkgtopkgtcolumns((s!/usr/share/yum-cli/yumcommands.pyt_list_cmd_calc_columnsÞs

tInfoCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntinfo((R1((s!/usr/share/yum-cli/yumcommands.pyR8ïscCsdS(Ns7[PACKAGE|all|installed|updates|extras|obsoletes|recent]((R1((s!/usr/share/yum-cli/yumcommands.pyR:òscCs
tdƒS(Ns4Display details about a package or group of packages(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;õscCs‚y)|iid}|i|d|ƒ}Wn+tiij
o}dt|ƒgfSXh}h}h}	d}
|djot||ƒ}
n|oq|i	ogxd|i
|i|iD]G}|i
|if}||jp|i||ƒo|||<q¸q¸Wn|oc|ioYxV|iD]G}|i
|if}||jp|i||ƒo|||<q"q"Wn|ob|ioXxUt|iƒD]@}
|
iidjo'|
iƒo|
|	|
i
|
if<q’q’Wn|ii}|ii}|ii}|ii}|i|i	tdƒ|d|d|
d	h|d
6|d6|d6|d
6ƒ}|ii}|ii}|ii }|ii!}|i|itdƒ|d|d|
d	h|d6|d
6|d6|d
6ƒ}|i|i"tdƒ|d|
ƒ}|ii#}|ii$}|i|itdƒ|d|	d|
d	h|d6|d
6ƒ}t%|i&ƒdjog|djoZddg}tdƒGHxdt|i'dt(i)dƒƒD]}|i*|dd|
ƒq¥Wn%|i|i&tdƒ|d|
ƒ}|i|i+tdƒ|d|
ƒ}t%|ƒoV|doK|do@|do5|do*|do|dodtdƒgfSdgfSdS(Ntboldtinstalled_availableitlistRLsInstalled Packagesthighlight_naRmthighlight_modest>t<t=snot insAvailable PackagessExtra PackagessUpdated PackagesiR
sObsoleting PackagestkeyRfsRecently Added PackagessNo matching Packages to list(,ttermtMODEtreturnPkgListsRDRERFRGtNoneRnRLthidden_availabletreinstall_availablet
old_availableRRRStverGTRbthidden_installedRdtsortedRtidtverifyLocalPkgRtcolor_list_installed_oldertcolor_list_installed_newertcolor_list_installed_reinstalltcolor_list_installed_extratlistPkgsRtcolor_list_available_upgradetcolor_list_available_downgradetcolor_list_available_reinstalltcolor_list_available_installRctcolor_update_localtcolor_update_remoteRRfRgtoperatort
itemgettertupdatesObsoletesListRe(R1RRRt	highlightRiRHtupdate_pkgst	inst_pkgst
local_pkgsRmR[Rytpotcliotclintclirtclietriptclautcladtclartclaitraptreptcultcurtruptroptobtuptrrap((s!/usr/share/yum-cli/yumcommands.pyR=øsŠ

!
! "	#
BcCs't|ƒo|ddjotStS(NiRL(RR/R5(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>Rs(R?R@R8R:R;R=R>(((s!/usr/share/yum-cli/yumcommands.pyRoîs
				ZtListCommandcBseZd„Zd„ZRS(cCsdgS(NRs((R1((s!/usr/share/yum-cli/yumcommands.pyR8YscCs
tdƒS(Ns$List a package or groups of packages(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;\s(R?R@R8R;(((s!/usr/share/yum-cli/yumcommands.pyRªXs	tEraseCommandcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs
ddgS(Nterasetremove((R1((s!/usr/share/yum-cli/yumcommands.pyR8bscCsdS(Ns
PACKAGE...((R1((s!/usr/share/yum-cli/yumcommands.pyR:escCs
tdƒS(Ns-Remove a package or packages from your system(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;hscCst|ƒt|||ƒdS(N(RR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<ks
cCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Remove Processi(R7Rt	erasePkgsRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=os
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>vscCstS(N(R5(R1RRR((s!/usr/share/yum-cli/yumcommands.pytneedTsRemoveys(	R?R@R8R:R;R<R=R>R¯(((s!/usr/share/yum-cli/yumcommands.pyR«`s						tGroupCommandcBseZd„ZRS(cCsŽ|i|tdƒƒ|iddƒy|iƒWnStiij
odtdƒgfStiij
o}dt|ƒgfSXdS(NsSetting up Group Processtdosackiis!No Groups on which to run command(	R7RtdoRepoSetuptdoGroupSetupRDREtGroupsErrorRFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=}s(R?R@R=(((s!/usr/share/yum-cli/yumcommands.pyR°|stGroupListCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Nt	grouplist((R1((s!/usr/share/yum-cli/yumcommands.pyR8ŠscCsdS(NR
((R1((s!/usr/share/yum-cli/yumcommands.pyR:scCs
tdƒS(NsList available package groups(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;scCs#ti||||ƒ|i|ƒS(N(R°R=treturnGroupLists(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR=“scCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>—s(R?R@R8R:R;R=R>(((s!/usr/share/yum-cli/yumcommands.pyRµ‰s
				tGroupInstallCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs
ddgS(Ntgroupinstalltgroupupdate((R1((s!/usr/share/yum-cli/yumcommands.pyR8›scCsdS(NsGROUP...((R1((s!/usr/share/yum-cli/yumcommands.pyR:žscCs
tdƒS(Ns.Install the packages in a group on your system(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;¡scCs(t|ƒt|ƒt|||ƒdS(N(RRR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<¤s

cCsYti||||ƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(Ni(R°R=t
installGroupsRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=©s
(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyR¸šs
				tGroupRemoveCommandcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs
ddgS(Ntgroupremovet
grouperase((R1((s!/usr/share/yum-cli/yumcommands.pyR8±scCsdS(NsGROUP...((R1((s!/usr/share/yum-cli/yumcommands.pyR:´scCs
tdƒS(Ns/Remove the packages in a group from your system(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;·scCst|ƒt|||ƒdS(N(RR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<ºs
cCsYti||||ƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(Ni(R°R=tremoveGroupsRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=¾s
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>ÅscCstS(N(R5(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR¯Ès(	R?R@R8R:R;R<R=R>R¯(((s!/usr/share/yum-cli/yumcommands.pyR¼°s						tGroupInfoCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Nt	groupinfo((R1((s!/usr/share/yum-cli/yumcommands.pyR8ÌscCsdS(NsGROUP...((R1((s!/usr/share/yum-cli/yumcommands.pyR:ÏscCs
tdƒS(Ns%Display details about a package group(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ÒscCst|||ƒdS(N(R(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<ÕscCsYti||||ƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(Ni(R°R=treturnGroupInfoRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=Øs
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>ßs(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRÀËs					tMakeCacheCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Nt	makecache((R1((s!/usr/share/yum-cli/yumcommands.pyR8äscCsdS(NR
((R1((s!/usr/share/yum-cli/yumcommands.pyR:çscCs
tdƒS(NsGenerate the metadata cache(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;êscCsdS(N((R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<íscCs)|iitdƒƒ|iitdƒƒy¼x,|iidƒD]}d|_d|_qBW|iddƒ|iiƒx|ii	ƒD]
}|i
q‹W|iiddd	d
ƒ|iiddd	d
ƒ|iiddd	d
ƒWn+ti
ij
o}d
t|ƒgfSXdtd
ƒgfS(Ns*Making cache files for all metadata files.s=This may take a while depending on the speed of this computert*is	group:allR±tmdtypeR t	cacheonlyit	filelistst	otherdatasMetadata Cache Created(RR)RRt	findRepostmetadata_expiretmdpolicyR²tdoSetupRtrepoXMLtpopulateSackRDRERFRG(R1RRRRRH((s!/usr/share/yum-cli/yumcommands.pyR=ðs$	

cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>	s(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRÃâs					tCleanCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntclean((R1((s!/usr/share/yum-cli/yumcommands.pyR8scCsdS(Ns<[headers|packages|metadata|dbcache|plugins|expire-cache|all]((R1((s!/usr/share/yum-cli/yumcommands.pyR:scCs
tdƒS(NsRemove cached data(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;scCst|||ƒdS(N(R'(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<scCsd|i_|i|ƒS(Ni(RtcachetcleanCli(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR=scCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>s(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRÐs					tProvidesCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs
ddgS(Ntprovidestwhatprovides((R1((s!/usr/share/yum-cli/yumcommands.pyR8"scCsdS(NtSOME_STRING((R1((s!/usr/share/yum-cli/yumcommands.pyR:%scCs
tdƒS(Ns*Find what package provides the given value(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;(scCst|||ƒdS(N(R(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<+scCsS|iidƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSearching Packages: i(RR)RÕRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=.s
(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyRÔ!s
				tCheckUpdateCommandcBs,eZd„Zd„Zd„Zd„ZRS(cCsdgS(Nscheck-update((R1((s!/usr/share/yum-cli/yumcommands.pyR86scCsdS(Ns[PACKAGE...]((R1((s!/usr/share/yum-cli/yumcommands.pyR:9scCs
tdƒS(Ns#Check for available package updates(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;<scCs|iiddƒd}yÃ|i|ƒ}|iip|iitiƒo.|idgƒ}|i|_|i	|_	nt
||ƒ}t|iƒdjoÐh}|i
id}	|	oXxUt|iƒD]@}
|
iidjo'|
iƒo|
||
i|
if<qÎqÎWn|ii}|ii}|i|idddd	|d
|dh|d6|d
6ƒd}nt|iƒdjoTtdƒGHx<t|i	dtidƒƒD]}
|i|
dd
|ƒq±Wd}nWn+tiij
o}dt|ƒgfSX|gfSdS(NiRdRfRqRLR
t
outputTypeRsRtRmRuRxsnot inidsObsoleting PackagesRyi( RtinsertR|RRfR(tisEnabledForRtDEBUG_3RgRnRRdRzR{RƒRR„R…RRRSRRRŠRR‘R’R“RDRERFRG(R1RRRtresultRittyplRmR—R”R˜R¤R¥R¨RH((s!/usr/share/yum-cli/yumcommands.pyR=?sF
 "
(R?R@R8R:R;R=(((s!/usr/share/yum-cli/yumcommands.pyRØ5s			t
SearchCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntsearch((R1((s!/usr/share/yum-cli/yumcommands.pyR8hscCsdS(NR×((R1((s!/usr/share/yum-cli/yumcommands.pyR:kscCs
tdƒS(Ns+Search package details for the given string(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;nscCst|||ƒdS(N(R(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<qscCsY|iitdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSearching Packages: i(RR)RRàRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=ts
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>{s(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRßgs					tUpgradeCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntupgrade((R1((s!/usr/share/yum-cli/yumcommands.pyR8scCsdS(Ns
PACKAGE...((R1((s!/usr/share/yum-cli/yumcommands.pyR:‚scCs
tdƒS(Ns-Update packages taking obsoletes into account(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;…scCst|ƒt|ƒdS(N(RR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<ˆs
cCsed|i_|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NisSetting up Upgrade Process(	RRfR7RRKRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=Œs(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyRá~s
				tLocalInstallCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs
ddgS(Ntlocalinstalltlocalupdate((R1((s!/usr/share/yum-cli/yumcommands.pyR8•scCsdS(NtFILE((R1((s!/usr/share/yum-cli/yumcommands.pyR:˜scCs
tdƒS(NsInstall a local RPM(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;›scCs(t|ƒt|ƒt|||ƒdS(N(RRR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<žs

cCsn|i|tdƒƒ|dj}y|id|d|ƒSWn+tiij
o}dt|ƒgfSXdS(Ns Setting up Local Package ProcessRåtfilelistt
updateonlyi(R7RtlocalInstallRDRERFRG(R1RRRRèRH((s!/usr/share/yum-cli/yumcommands.pyR=£scCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>¬s(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRã”s						tResolveDepCommandcBs,eZd„Zd„Zd„Zd„ZRS(cCsdgS(Nt
resolvedep((R1((s!/usr/share/yum-cli/yumcommands.pyR8°scCsdS(Nt
DEPENDENCY((R1((s!/usr/share/yum-cli/yumcommands.pyR:³scCs
tdƒS(Ns5Determine which package provides the given dependency(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;¶scCsY|iitdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(Ns"Searching Packages for Dependency:i(RR)Rt
resolveDepCliRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=¹s
(R?R@R8R:R;R=(((s!/usr/share/yum-cli/yumcommands.pyRê¯s			tShellCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntshell((R1((s!/usr/share/yum-cli/yumcommands.pyR8ÁscCsdS(Ns
[FILENAME]((R1((s!/usr/share/yum-cli/yumcommands.pyR:ÄscCs
tdƒS(NsRun an interactive yum shell(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ÇscCst|||ƒdS(N(R-(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<ÊscCsV|i|tdƒƒy|iƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Yum Shelli(R7RtdoShellRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=Ís
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>Ôs(R?R@R8R:R;R<R=R>(((s!/usr/share/yum-cli/yumcommands.pyRîÀs					tDepListCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Ntdeplist((R1((s!/usr/share/yum-cli/yumcommands.pyR8ÙscCsdS(Ns
PACKAGE...((R1((s!/usr/share/yum-cli/yumcommands.pyR:ÜscCs
tdƒS(NsList a package's dependencies(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ßscCst|||ƒdS(N(R(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<âscCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsFinding dependencies: i(R7RRòRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=ås
(R?R@R8R:R;R<R=(((s!/usr/share/yum-cli/yumcommands.pyRñØs
				tRepoListCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdS(Ntrepolist(Rô((R1((s!/usr/share/yum-cli/yumcommands.pyR8ïscCsdS(Ns[all|enabled|disabled]((R1((s!/usr/share/yum-cli/yumcommands.pyR:òscCs
tdƒS(Ns,Display the configured software repositories(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;õsc&st	‡fd†}d„}t|ƒdjo)|dd4jo|d}|d}nd}td„|ƒ}ˆiitiƒ}yˆiiƒWn'ti	i
j
o|o‚q¼nXˆiiiƒ}|iƒˆii
ƒ}	|djoBˆiid	ˆiid
}
ˆiid}ˆiid}nd
}
d
}d
}d}
g}x¯|D]§}t|ƒo|||ƒoq[n||	joƒt}|
tdƒ|d}ttdƒƒd}t|iƒ}|
|7}
ttid|tƒƒ}|o||ƒ}qHn3t}|tdƒ|}ttdƒƒ}d
}|djp)|djo|p|djoŒ|o„|p,|it|ƒ|i||f|fƒq|o
|i}nd}ˆitdƒ|ƒˆitdƒ|iƒˆitdƒ|ƒg}|o6|idj	o&|ˆitdƒ|iƒg7}n|oM|i do?|i d}|ˆitdƒdi!t"|ƒƒƒg7}n|oy|i dokxht"|i dƒD]O}|i d|}|ˆitdƒd|di!t"|ƒƒfƒg7}qÍWn|oY|ˆitdƒt#i$|i%ƒƒˆitdƒ|ƒˆitdƒ|ƒg7}nt&|dƒo
|i'}n
|i(}|o,|ˆitdƒdi!|ƒƒg7}n|o|i)n|i*oh|ˆitd ƒ|i*ƒg7}|o;|i+i,i%}|ˆitd!ƒt#i$|ƒƒg7}q‘n1|i-o&|ˆitd"ƒ|i-ƒg7}nt.i/i0|i1ƒptd#ƒ}n%t.i2|i1ƒi3}t#i$|ƒ}|i4d$jotd%ƒ|}nM|i4ptd&ƒ|}n/tid|i4tƒ}td'ƒ||f}|ˆitd(ƒ|ƒg7}|i5o/|ˆitd)ƒdi!|i5ƒƒg7}n|i6o/|ˆitd*ƒdi!|i6ƒƒg7}nˆii7tid+d,i!|ƒƒq[q[W|o@|o9ttd-ƒƒ}d}d}d} x |D]˜\}!}"\}}}|t|!ƒjot|!ƒ}n|t|"ƒjot|"ƒ}n||jo
|}n| t|ƒjot|ƒ} q@q@Wttd.ƒƒ|| jo(ˆii8|ttd.ƒƒd}#nˆii8||| d}#|#|jo
|#}n+|#|8}#||#d7}||#|#d7}t9td-ƒ|ƒ}$t9td/ƒ||ƒ}%ˆii7ti:d0|$|%td.ƒƒx{|D]o\}!}"\}}}|ot9|| d1tƒ}nˆii7ti:d2t9|!|ƒt9|"||ƒ||ƒq×Wndd3ttid|
tƒƒgfS(5Ncs:d}x$|iiƒD]}||i7}qWˆi|ƒS(Ni(tsacktreturnPackagestpackagesizet
format_number(RtretR[(R(s!/usr/share/yum-cli/yumcommands.pyt
_repo_sizeùs
cSsc|iiƒ}|iiƒ}x>|D]6}ti||ƒotSti||ƒotSq%WtS(N(R„tlowerRRtfnmatchR5R/(RtpatternsRQtrnmtpat((s!/usr/share/yum-cli/yumcommands.pyt_repo_matchÿs	iiR#tdisabledtenabledcSs
|iƒS((Rû(tx((s!/usr/share/yum-cli/yumcommands.pyt<lambda>stgreenRqtredtnormalR
s: is%dsRepo-id      : sRepo-name    : sRepo-status  : sRepo-revision: tcontentsRepo-tags    : s, tdistrosRepo-distro-tags: s[%s]: %ssRepo-updated : sRepo-pkgs    : sRepo-size    : t
_orig_baseurlsRepo-baseurl : sRepo-metalink: s  Updated    : sRepo-mirrors : tUnknowniÿÿÿÿsNever (last: %s)sInstant (last: %s)s%s second(s) (last: %s)sRepo-expire  : sRepo-exclude : sRepo-include : s%s
s
srepo idtstatuss	repo names%s %s %stlefts
%s %s %s%ss
repolist: (sallRsenabled(;RtmapR(RÛRRÜRRÏRDREt	RepoErrortvaluestsortRRztFG_COLORR{R5RRRõRtlocaletformatR/tappendRGRRRÎR}t
fmtKeyValFilltrevisionttagsR$Rƒttimetctimet	timestampthasattrR
tbaseurlturlstmetalinkt
metalink_datatrepomdt
mirrorlistR*R+texiststmetadata_cookietstattst_mtimeRËtexcludetincludepkgsR3RmRR4(&R1RRRRúRtargtverboseRt
enabled_repostehibegtdhibegthiendttot_numtcolsRRt
ui_enabledtui_endis_widtnumtui_numtui_sizetmdtoutRR	tbaseurlsttstlasttid_lentnm_lentct_lentui_lenRQtrnameR
ttxt_ridttxt_rnam((Rs!/usr/share/yum-cli/yumcommands.pyR=øs&	
$







 ( 
	






(


cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>¸s(R?R@R8R:R;R=R>(((s!/usr/share/yum-cli/yumcommands.pyRóís
				ÀtHelpCommandcBsMeZd„Zd„Zd„Zd„Zed„ƒZd„Zd„Z	RS(cCsdgS(Nthelp((R1((s!/usr/share/yum-cli/yumcommands.pyR8¾scCsdS(NtCOMMAND((R1((s!/usr/share/yum-cli/yumcommands.pyR:ÁscCs
tdƒS(NsDisplay a helpful usage message(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ÄscCslt|ƒdjo|iƒti‚n?t|ƒdjp|d|ijo|iƒti‚ndS(Nii(RRR	R
tyum_cli_commands(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<Çs

'
c
Csg|iƒd}y|iƒ}Wnttfj
o
d}nXy|iƒ}Wnttfj
o
d}nXd}|dj	o|d||f7}n|dj	o|d|7}n|djo!|djotdƒ|}n|iƒ}t|ƒdjoXt|ƒdjo|tdƒ7}n|td	ƒ7}|d
i|iƒdƒ7}n|S(NiR
s%s %ss

%ssNo help available for %siis

aliases: s	

alias: s, (	R8R:tAttributeErrorR9R}R;RRR$(tcommandtcanonical_nameRtsummarythelp_outputt
command_names((s!/usr/share/yum-cli/yumcommands.pyt_makeOutputÏs.

!cCsU|ii|dƒo4|i|d}|iiti|i|ƒƒndgfS(Ni(REthas_keyR(R3RR4RL(R1RRRRG((s!/usr/share/yum-cli/yumcommands.pyR=ós
cCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>ús(
R?R@R8R:R;R<tstaticmethodRLR=R>(((s!/usr/share/yum-cli/yumcommands.pyRB¼s				$	tReInstallCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Nt	reinstall((R1((s!/usr/share/yum-cli/yumcommands.pyR8þscCsdS(Ns
PACKAGE...((R1((s!/usr/share/yum-cli/yumcommands.pyR:scCs(t|ƒt|ƒt|||ƒdS(N(RRR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<s

cCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Reinstall Processi(R7Rt
reinstallPkgsRDRERFR(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=	s
cCs
tdƒS(Nsreinstall a package(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;scCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>s(R?R@R8R:R<R=R;R>(((s!/usr/share/yum-cli/yumcommands.pyROýs					tDowngradeCommandcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(Nt	downgrade((R1((s!/usr/share/yum-cli/yumcommands.pyR8scCsdS(Ns
PACKAGE...((R1((s!/usr/share/yum-cli/yumcommands.pyR:scCs(t|ƒt|ƒt|||ƒdS(N(RRR(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR<s

cCsY|i|tdƒƒy|i|ƒSWn+tiij
o}dt|ƒgfSXdS(NsSetting up Downgrade Processi(R7Rt
downgradePkgsRDRERFRG(R1RRRRH((s!/usr/share/yum-cli/yumcommands.pyR=#s
cCs
tdƒS(Nsdowngrade a package(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;*scCstS(N(R/(R1RRR((s!/usr/share/yum-cli/yumcommands.pyR>-s(R?R@R8R:R<R=R;R>(((s!/usr/share/yum-cli/yumcommands.pyRRs					tVersionCommandcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCsdgS(NRT((R1((s!/usr/share/yum-cli/yumcommands.pyR82scCsdS(Ns[all|installed|available]((R1((s!/usr/share/yum-cli/yumcommands.pyR:5scCs
tdƒS(Ns9Display a version for the machine and/or available repos.(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;8scCsÇd}|o|d}nd„}|iitiƒ}h}tiiƒ}xK|D]C}	t||	iƒ||	<||	i	o||	i
|iƒqUqUW|djo9tdƒGHxt
|ƒD]}	dG|	GHqÁWddgfS|djox|D]ù}	|	|d	joqöntd
ƒG|	GHtdƒGH|p(x·t
||	ƒD]}
dG|
GHqFWqöhhd6hd
6}||	}|i|ƒ}
|i|||
ƒ|d|d
g}|i|ƒ}|d|d	f}|i|t|
d|ƒqöWddgfS|id}|id}g}|d#jotyB|ii|d|ƒ}|iiƒ}|dj	o
|i}n|dj	o1|d|jo tdƒ}|ii|ƒn|d$joE|idtdƒ||ft|dƒfƒ|||d	ƒn|oexbt
|dƒD]L}|idtdƒ|ft|d|ƒfƒ|||d|ƒqWnWq¢tiij
o}d	t|ƒgfSXn|d%jo#yñ|i i|d|ƒ}|d&joP|idtdƒ||ft|dƒfƒ|o|||d	ƒq(n|opxmt
|dƒD]W}|idtd ƒ|ft|d|ƒfƒ|o|||d|ƒq@q@WnWqÒtiij
o}d	t|ƒgfSXnhhd
6hd!6}xq|D]i\}}xZd
t!|ƒfd!t!|ƒffD]4\}}||i"|dƒ|||cd	7<qWqíW|d
|d!g}|i|ƒ}|d|d	f}x%|D]}|i#t$||ƒƒGHq™Wdd"gfS('NRLicSsåxÞt|ƒD]Ð}||}g}d}xYt|ƒD]K}|djoq6n||}|id||ft||ƒfƒq6Wd|jo>|p|d|jo%|id|t|dƒfƒn|i|ƒq
WdS(Ns	    %s/%ss    %s(RƒR}RRGtextend(R0t	repo_dataRVR¥tncolstlast_revtrev((s!/usr/share/yum-cli/yumcommands.pyt
_append_repos@s




+&%R¶s Yum version groups:s   sversion grouplistRÁis
 Group   :s
 Packages:tenvraRQRmsversion groupinfot
releasevertbasearchR#sgroup-installeds	group-alltgroupss?Warning: RPMDB has been altered since the last yum transaction.s%s %s/%ss
Installed:is%s %ssGroup-Installed:iRbsgroup-availables
Available:sGroup-Available:RPRT(s	installedsallsgroup-installeds	group-all(sgroup-installeds	group-all(s	availablesallsgroup-availables	group-all(sgroup-availables	group-all(%R(RÛRRÜRDtconfigtreadVersionGroupsConfigtsettpkglisttrun_with_packagesRJtrun_with_package_namesRRƒt_group_names2aipkgst_calcDataPkgColumnsRht_displayPkgsFromNamesR5tyumvartrpmdbt
simpleVersionthistoryR:R}tend_rpmdbversionRtwarningRRGRERFtpkgSackRRYt
fmtColumnstzip(R1RRRtvcmdR[R*R_tgconftgrouptpkgnameRZt	pkg_namestpkg_names2pkgsRmtreltbaR0tlastdbvt	errstringtgrpRHRQRPR]R^tline((s!/usr/share/yum-cli/yumcommands.pyR=;s¼	










!

%%cCsSd}|o|d}n|iitiƒ}|djo|otS|djS(	NRLiRÁRbR#sgroup-availables	group-all(s	availablesallsgroup-availables	group-all(R(RÛRRÜR5(R1RRRRrR*((s!/usr/share/yum-cli/yumcommands.pyR>©s(R?R@R8R:R;R=R>(((s!/usr/share/yum-cli/yumcommands.pyRU1s
				ntHistoryCommandcBsYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	cCsdgS(NRl((R1((s!/usr/share/yum-cli/yumcommands.pyR8´scCsdS(Ns![info|list|summary|redo|undo|new]((R1((s!/usr/share/yum-cli/yumcommands.pyR:·scCs
tdƒS(Ns(Display, or use, the transaction history(R(R1((s!/usr/share/yum-cli/yumcommands.pyR;ºscCs‡|i|ƒ}|djoddgfSti|iƒ}d|i|fGH|i|ƒ|i|ƒodd|ifgfSdS(NisFailed history redos!Repeating transaction %u, from %sisRepeating transaction %u(t_history_get_transactionR}RRt
beg_timestampttidthistoryInfoCmdPkgsAlteredthistory_redo(R1RRtoldttm((s!/usr/share/yum-cli/yumcommands.pyt
_hcmd_redo½s

cCs‡|i|ƒ}|djoddgfSti|iƒ}d|i|fGH|i|ƒ|i|ƒodd|ifgfSdS(NisFailed history undosUndoing transaction %u, from %sisUndoing transaction %u(RR}RRR€RR‚thistory_undo(R1RRR„R…((s!/usr/share/yum-cli/yumcommands.pyt
_hcmd_undoÇs

cCs|iiƒdS(N(Rlt_create_db_file(R1RR((s!/usr/share/yum-cli/yumcommands.pyt	_hcmd_newÑscCsd}|o@|d|jo/|iitd	ƒd
i|ƒƒti‚n|o)|ddjot|ƒt|ƒndS(
NRsRpRItrepeattredotundotnewis%Invalid history sub-command, use: %s.s, (slistsinfossummarysrepeatRŒRsnew(srepeatRŒRsnew(RRRR$R	R
RR(R1RRRtcmds((s!/usr/share/yum-cli/yumcommands.pyR<Ôs

cCsd}|o|d}ntonÊ|djo|i|ƒ}nª|djo|i|ƒ}nŠ|djo|i|ƒ}nj|djo|i||ƒ}nG|d
jo|i||ƒ}n$|djo|i||ƒ}n|djodd	|fgfS|S(NRsiRpRIRRŒR‹RŽs
history %s(sredosrepeat(R/thistoryListCmdthistoryInfoCmdthistorySummaryCmdRˆR†RŠR}(R1RRRRrRù((s!/usr/share/yum-cli/yumcommands.pyR=Þs(






cCs%d}|o|d}n|djS(NRsiR‹RŒR(srepeatsredosundo((R1RRRRr((s!/usr/share/yum-cli/yumcommands.pyR>õs(R?R@R8R:R;R†RˆRŠR<R=R>(((s!/usr/share/yum-cli/yumcommands.pyR~³s				
	
		
	((4t__doc__R*R	RDRRt
yum.ErrorsR‘RRüRtyum.i18nRRRt
yum.configRRRRRR'R-R.RARIR_RnRoRªR«R°RµR¸R¼RÀRÃRÐRÔRØRßRáRãRêRîRñRóRBRORRRUR~(((s!/usr/share/yum-cli/yumcommands.pyt<module>s^	
						(	j
*2ÏA‚

Youez - 2016 - github.com/yon3zu
LinuXploit