8136a6d
diff --git a/debuginfo-install.py b/debuginfo-install.py
8136a6d
index bb61a1d..5252d72 100755
8136a6d
--- a/debuginfo-install.py
8136a6d
+++ b/debuginfo-install.py
8136a6d
@@ -23,6 +23,7 @@ import yum.Errors
8136a6d
 
8136a6d
 from utils import YumUtilBase
8136a6d
 from yum import _
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import logging
8136a6d
 import rpmUtils
8136a6d
@@ -196,5 +197,6 @@ if __name__ == '__main__':
8136a6d
         import codecs
8136a6d
         sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
8136a6d
         sys.stdout.errors = 'replace'
8136a6d
-    
8136a6d
+
8136a6d
+    deprecated_warning()
8136a6d
     util = DebugInfoInstall()
8136a6d
diff --git a/find-repos-of-install.py b/find-repos-of-install.py
8136a6d
index aac29ea..f4dada8 100644
8136a6d
--- a/find-repos-of-install.py
8136a6d
+++ b/find-repos-of-install.py
8136a6d
@@ -19,9 +19,12 @@ import os
8136a6d
 import os.path
8136a6d
 
8136a6d
 from optparse import OptionParser
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import yum
8136a6d
 
8136a6d
+deprecated_warning()
8136a6d
+
8136a6d
 my = yum.YumBase()
8136a6d
 my.conf.showdupesfromrepos = 1
8136a6d
 
8136a6d
diff --git a/needs-restarting.py b/needs-restarting.py
8136a6d
index b0e540b..a9ba04e 100755
8136a6d
--- a/needs-restarting.py
8136a6d
+++ b/needs-restarting.py
8136a6d
@@ -45,6 +45,7 @@ import glob
8136a6d
 import stat
8136a6d
 from optparse import OptionParser
8136a6d
 from yum.Errors import RepoError
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 sys.path.insert(0,'/usr/share/yum-cli')
8136a6d
 import utils
8136a6d
 
8136a6d
@@ -175,6 +176,7 @@ def main(args):
8136a6d
     
8136a6d
 if __name__ == "__main__":
8136a6d
     try:
8136a6d
+        deprecated_warning()
8136a6d
         sys.exit(main(sys.argv))
8136a6d
     except RepoError, e:
8136a6d
         print >>sys.stderr, e
8136a6d
diff --git a/package-cleanup.py b/package-cleanup.py
8136a6d
index acad9f2..9c3a474 100755
8136a6d
--- a/package-cleanup.py
8136a6d
+++ b/package-cleanup.py
8136a6d
@@ -34,6 +34,7 @@ import yum.depsolve # For flags
8136a6d
 from yum.Errors import YumBaseError
8136a6d
 from rpmUtils import miscutils, arch
8136a6d
 from optparse import OptionGroup
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 def exactlyOne(l):
8136a6d
     return len(filter(None, l)) == 1
8136a6d
@@ -397,4 +398,5 @@ class PackageCleanup(YumUtilBase):
8136a6d
     
8136a6d
 if __name__ == '__main__':
8136a6d
     setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     util = PackageCleanup()
8136a6d
diff --git a/repo-check.py b/repo-check.py
8136a6d
index 2aa8bde..f2ce616 100755
8136a6d
--- a/repo-check.py
8136a6d
+++ b/repo-check.py
8136a6d
@@ -19,6 +19,7 @@ sys.path.insert(0,'/usr/share/yum-cli')
8136a6d
 import logging
8136a6d
 from utils import YumUtilBase
8136a6d
 from yum.misc import getCacheDir, setup_locale
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import yum.Errors
8136a6d
 
8136a6d
@@ -238,5 +239,6 @@ class RepoCheck(YumUtilBase):
8136a6d
 
8136a6d
 if __name__ == '__main__':
8136a6d
     setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     util = RepoCheck()
8136a6d
     
8136a6d
diff --git a/repo-graph.py b/repo-graph.py
8136a6d
index bca41d0..72880fc 100755
8136a6d
--- a/repo-graph.py
8136a6d
+++ b/repo-graph.py
8136a6d
@@ -23,6 +23,7 @@ import yum
8136a6d
 import sys
8136a6d
 from yum.misc import getCacheDir
8136a6d
 from optparse import OptionParser
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 default_header = """
8136a6d
 size="20.69,25.52";
8136a6d
@@ -94,6 +95,7 @@ class yumQuiet(yum.YumBase):
8136a6d
         return requires
8136a6d
 
8136a6d
 if __name__ == '__main__':
8136a6d
+    deprecated_warning()
8136a6d
     parser = OptionParser()
8136a6d
     parser.add_option("--repoid", default=[], action="append",
8136a6d
                       help="specify repositories to use")
8136a6d
diff --git a/repo-rss.py b/repo-rss.py
8136a6d
index 871e338..5d9c249 100755
8136a6d
--- a/repo-rss.py
8136a6d
+++ b/repo-rss.py
8136a6d
@@ -20,6 +20,7 @@ import yum.Errors
8136a6d
 from yum.misc import getCacheDir, to_unicode
8136a6d
 from yum.comps import Comps, CompsException
8136a6d
 from yum.Errors import RepoMDError
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 import sys
8136a6d
 import os
8136a6d
 import libxml2
8136a6d
@@ -252,6 +253,7 @@ def main(options, args):
8136a6d
 
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     usage = "repo-rss.py [options] repoid1 repoid2"
8136a6d
     
8136a6d
     parser = OptionParser(usage=usage)
8136a6d
diff --git a/repoclosure.py b/repoclosure.py
8136a6d
index f895f84..693b67d 100755
8136a6d
--- a/repoclosure.py
8136a6d
+++ b/repoclosure.py
8136a6d
@@ -32,6 +32,7 @@ import rpmUtils.arch
8136a6d
 import rpmUtils.updates
8136a6d
 from yum.constants import *
8136a6d
 from yum.packageSack import ListPackageSack
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 def parseArgs():
8136a6d
     usage = """
8136a6d
@@ -303,6 +304,7 @@ def main():
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
     try:
8136a6d
+        deprecated_warning()
8136a6d
         main()
8136a6d
     except (yum.Errors.YumBaseError, ValueError), e:
8136a6d
         print >> sys.stderr, str(e)
8136a6d
diff --git a/repodiff.py b/repodiff.py
8136a6d
index 5ae1d8f..44092df 100755
8136a6d
--- a/repodiff.py
8136a6d
+++ b/repodiff.py
8136a6d
@@ -21,6 +21,7 @@ import os
8136a6d
 import locale
8136a6d
 import rpmUtils.arch
8136a6d
 from yum.i18n import to_unicode
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 from urlgrabber.progress import format_number
8136a6d
 
8136a6d
@@ -371,4 +372,5 @@ def main(args):
8136a6d
       
8136a6d
 if __name__ == "__main__":
8136a6d
     yum.misc.setup_locale(override_time=True)
8136a6d
+    deprecated_warning()
8136a6d
     main(sys.argv[1:])
8136a6d
diff --git a/repomanage.py b/repomanage.py
8136a6d
index bef3b03..6ffd8f5 100755
8136a6d
--- a/repomanage.py
8136a6d
+++ b/repomanage.py
8136a6d
@@ -27,6 +27,7 @@ import fnmatch
8136a6d
 import string
8136a6d
 import rpmUtils
8136a6d
 from yum import misc
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 from optparse import OptionParser
8136a6d
 
8136a6d
@@ -221,6 +222,7 @@ def usage():
8136a6d
         
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     if len(sys.argv) < 1:
8136a6d
         usage()
8136a6d
         sys.exit(1)
8136a6d
diff --git a/repoquery.py b/repoquery.py
8136a6d
index af70518..7b4fed3 100755
8136a6d
--- a/repoquery.py
8136a6d
+++ b/repoquery.py
8136a6d
@@ -37,6 +37,7 @@ import yum.config
8136a6d
 import yum.Errors
8136a6d
 import yum.packages
8136a6d
 from yum.i18n import to_unicode
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 from rpmUtils.arch import getArchList, getBaseArch
8136a6d
 from rpmUtils.miscutils import formatRequire
8136a6d
 import output
8136a6d
@@ -1547,6 +1548,7 @@ def main(args):
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
     misc.setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     main(sys.argv)
8136a6d
                 
8136a6d
 # vim:sw=4:sts=4:expandtab              
8136a6d
diff --git a/reposync.py b/reposync.py
8136a6d
index 541ab9d..09133b5 100755
8136a6d
--- a/reposync.py
8136a6d
+++ b/reposync.py
8136a6d
@@ -41,6 +41,7 @@ from optparse import OptionParser
8136a6d
 from urlparse import urljoin
8136a6d
 
8136a6d
 from yumutils.i18n import _
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import yum
8136a6d
 import yum.Errors
8136a6d
@@ -329,4 +330,5 @@ def main():
8136a6d
     sys.exit(exit_code)
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
diff --git a/repotrack.py b/repotrack.py
8136a6d
index 8dd8b9c..618d8f3 100755
8136a6d
--- a/repotrack.py
8136a6d
+++ b/repotrack.py
8136a6d
@@ -37,6 +37,7 @@ from yum.misc import getCacheDir
8136a6d
 from yum.constants import *
8136a6d
 from yum.packages import parsePackages
8136a6d
 from yum.packageSack import ListPackageSack
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 class RepoTrack(yum.YumBase):
8136a6d
     def __init__(self, opts):
8136a6d
@@ -243,5 +244,6 @@ def main():
8136a6d
             shutil.copy2(path, local)
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
     
8136a6d
diff --git a/show-changed-rco.py b/show-changed-rco.py
8136a6d
index f314ef0..0c0ed05 100755
8136a6d
--- a/show-changed-rco.py
8136a6d
+++ b/show-changed-rco.py
8136a6d
@@ -22,6 +22,7 @@ import os
8136a6d
 
8136a6d
 from optparse import OptionParser
8136a6d
 from optparse import SUPPRESS_HELP
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 version = "1.0.0"
8136a6d
 
8136a6d
@@ -306,4 +307,5 @@ def main():
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
     yum.misc.setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
diff --git a/show-installed.py b/show-installed.py
8136a6d
index 65aae11..674414c 100755
8136a6d
--- a/show-installed.py
8136a6d
+++ b/show-installed.py
8136a6d
@@ -7,6 +7,7 @@ TODO:
8136a6d
 
8136a6d
 import yum
8136a6d
 from optparse import OptionParser
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 import sys
8136a6d
 
8136a6d
 __stateprefixes = {
8136a6d
@@ -406,4 +407,5 @@ def __main__():
8136a6d
     p.writeList()
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     __main__()
8136a6d
diff --git a/verifytree.py b/verifytree.py
8136a6d
index 78e8264..76fd453 100755
8136a6d
--- a/verifytree.py
8136a6d
+++ b/verifytree.py
8136a6d
@@ -20,6 +20,7 @@ import os
8136a6d
 from yum.misc import getCacheDir, checksum
8136a6d
 import urlparse
8136a6d
 from yum import Errors
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 from optparse import OptionParser
8136a6d
 import ConfigParser
8136a6d
 
8136a6d
@@ -285,5 +286,6 @@ def main():
8136a6d
     return retval
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     rc = main()
8136a6d
     sys.exit(rc)
8136a6d
diff --git a/yum-builddep.py b/yum-builddep.py
8136a6d
index 7c40713..7b3c8a1 100755
8136a6d
--- a/yum-builddep.py
8136a6d
+++ b/yum-builddep.py
8136a6d
@@ -22,6 +22,7 @@ from yum.misc import setup_locale
8136a6d
 from yum.i18n import exception2msg
8136a6d
 import yum.Errors
8136a6d
 from utils import YumUtilBase
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import logging
8136a6d
 import rpmUtils
8136a6d
@@ -252,6 +253,7 @@ class YumBuildDep(YumUtilBase):
8136a6d
             
8136a6d
 if __name__ == '__main__':
8136a6d
     setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     util = YumBuildDep()
8136a6d
         
8136a6d
        
8136a6d
diff --git a/yum-complete-transaction.py b/yum-complete-transaction.py
8136a6d
index 6b01e4e..0000412 100755
8136a6d
--- a/yum-complete-transaction.py
8136a6d
+++ b/yum-complete-transaction.py
8136a6d
@@ -22,6 +22,7 @@ from yum.misc import setup_locale
8136a6d
 
8136a6d
 from utils import YumUtilBase
8136a6d
 from yum.constants import TS_REMOVE_STATES
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 import logging
8136a6d
 import os
8136a6d
@@ -263,6 +264,7 @@ class YumCompleteTransaction(YumUtilBase):
8136a6d
 
8136a6d
 if __name__ == '__main__':
8136a6d
     setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     util = YumCompleteTransaction()
8136a6d
 
8136a6d
 
8136a6d
diff --git a/yum-config-manager.py b/yum-config-manager.py
8136a6d
index 380a54f..f751cb4 100755
8136a6d
--- a/yum-config-manager.py
8136a6d
+++ b/yum-config-manager.py
8136a6d
@@ -14,6 +14,8 @@ import yum.config
8136a6d
 import yum.yumRepo
8136a6d
 
8136a6d
 from yum.parser import varReplace
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
+
8136a6d
 
8136a6d
 # Regular expressions to sanitise cache filenames
8136a6d
 re_url_scheme    = re.compile(r'^\w+:/*(\w+:|www\.)?')
8136a6d
@@ -110,6 +112,7 @@ VERSION = '1.0'
8136a6d
 USAGE = '"yum-config-manager [options] [section]'
8136a6d
 
8136a6d
 yum.misc.setup_locale()
8136a6d
+deprecated_warning()
8136a6d
 
8136a6d
 yb = YumUtilBase(NAME, VERSION, USAGE)
8136a6d
 logger = logging.getLogger("yum.verbose.cli.yum-config-manager")
8136a6d
diff --git a/yum-debug-dump.py b/yum-debug-dump.py
8136a6d
index 67d943f..fce26f7 100755
8136a6d
--- a/yum-debug-dump.py
8136a6d
+++ b/yum-debug-dump.py
8136a6d
@@ -22,6 +22,7 @@ import time
8136a6d
 import yum
8136a6d
 from yum import Errors
8136a6d
 from yum.misc import getCacheDir
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 from rpmUtils import miscutils
8136a6d
 import gzip
8136a6d
 import rpm
8136a6d
@@ -207,4 +208,5 @@ def main():
8136a6d
     print "Output written to: %s" % fn
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
diff --git a/yum-debug-restore.py b/yum-debug-restore.py
8136a6d
index 1d827f4..f201260 100755
8136a6d
--- a/yum-debug-restore.py
8136a6d
+++ b/yum-debug-restore.py
8136a6d
@@ -25,6 +25,7 @@ from optparse import OptionParser
8136a6d
 
8136a6d
 import yum
8136a6d
 import rpmUtils.miscutils
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 sections = ['%%%%SYSTEM INFO\n', '%%%%YUM INFO\n',
8136a6d
             '%%%%RPMDB PROBLEMS\n', '%%%%RPMDB\n',
8136a6d
@@ -236,6 +237,7 @@ def main():
8136a6d
     os.system("yum shell %s %s" % (" ".join(xtra_args), fo.name))
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
 
8136a6d
 
8136a6d
diff --git a/yum-groups-manager.py b/yum-groups-manager.py
8136a6d
index c536092..300abff 100755
8136a6d
--- a/yum-groups-manager.py
8136a6d
+++ b/yum-groups-manager.py
8136a6d
@@ -9,6 +9,7 @@ import gzip
8136a6d
 
8136a6d
 import yum
8136a6d
 from yum.i18n import to_unicode
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 import yum.comps
8136a6d
 
8136a6d
 sys.path.insert(0, '/usr/share/yum-cli')
8136a6d
@@ -308,4 +309,5 @@ def main():
8136a6d
         print to_unicode(comps.xml())
8136a6d
 
8136a6d
 if __name__ == "__main__":
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
diff --git a/yumdb.py b/yumdb.py
8136a6d
index c50159e..3196713 100755
8136a6d
--- a/yumdb.py
8136a6d
+++ b/yumdb.py
8136a6d
@@ -9,6 +9,7 @@ import shlex
8136a6d
 
8136a6d
 import os
8136a6d
 import glob
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 
8136a6d
 parser = None
8136a6d
 
8136a6d
@@ -247,4 +248,5 @@ def main():
8136a6d
 
8136a6d
 
8136a6d
 if __name__ == '__main__':
8136a6d
+    deprecated_warning()
8136a6d
     main()
8136a6d
diff --git a/yumdownloader.py b/yumdownloader.py
8136a6d
index 1b95e8d..8b3d00a 100755
8136a6d
--- a/yumdownloader.py
8136a6d
+++ b/yumdownloader.py
8136a6d
@@ -23,6 +23,7 @@ from yum.misc import setup_locale
8136a6d
 from yum.packages import parsePackages
8136a6d
 from yum.Errors import RepoError
8136a6d
 from yum.i18n import exception2msg
8136a6d
+from yumutils.deprecated import deprecated_warning
8136a6d
 from utils import YumUtilBase
8136a6d
 
8136a6d
 from urlparse import urljoin
8136a6d
@@ -258,5 +259,6 @@ class YumDownloader(YumUtilBase):
8136a6d
 
8136a6d
 if __name__ == '__main__':
8136a6d
     setup_locale()
8136a6d
+    deprecated_warning()
8136a6d
     util = YumDownloader()
8136a6d
     sys.exit(util.exit_code)
8136a6d
diff --git a/yumutils/deprecated.py b/yumutils/deprecated.py
8136a6d
new file mode 100644
8136a6d
index 0000000..d583915
8136a6d
--- /dev/null
8136a6d
+++ b/yumutils/deprecated.py
8136a6d
@@ -0,0 +1,29 @@
8136a6d
+#!/usr/bin/python -tt
8136a6d
+# This program is free software; you can redistribute it and/or modify
8136a6d
+# it under the terms of the GNU General Public License as published by
8136a6d
+# the Free Software Foundation; either version 2 of the License, or
8136a6d
+# (at your option) any later version.
8136a6d
+#
8136a6d
+# This program is distributed in the hope that it will be useful,
8136a6d
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
8136a6d
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8136a6d
+# GNU Library General Public License for more details.
8136a6d
+#
8136a6d
+# You should have received a copy of the GNU General Public License
8136a6d
+# along with this program; if not, write to the Free Software
8136a6d
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8136a6d
+
8136a6d
+from __future__ import print_function
8136a6d
+from yumutils.i18n import _
8136a6d
+
8136a6d
+import sys
8136a6d
+
8136a6d
+WARNING = _("""
8136a6d
+Yum-utils package has been deprecated, use dnf instead.
8136a6d
+See 'man yum2dnf' for more information.
8136a6d
+
8136a6d
+""")
8136a6d
+
8136a6d
+def deprecated_warning():
8136a6d
+    print(WARNING, file=sys.stderr)
8136a6d
+
8136a6d
-- 
8136a6d
1.8.3.1