|**Accumulated Other Comprehensive Loss**                                                                                             | 3 Months Ended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
|------------------------------------------------------------------------------------------------------------------------------------ | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|**Accumulated Other Comprehensive Income (Loss), Net of Tax [Abstract]**                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|Accumulated Other Comprehensive Loss                                                                                                 | Accumulated Other Comprehensive LossThe components of accumulated other comprehensive loss are summarized below:September 29, 2017June 30, 2017(1)(In millions)Foreign currency translation, net of income taxes of $2 million and $1 million at September 29, 2017 and June 30, 2017, respectively$(88)$(113)Net unrealized loss on hedging derivatives, net of income taxes of $11 million at September 29, 2017 and June 30, 2017(16)(17)Unrecognized postretirement obligations, net of income taxes of $89 million at September 29, 2017 and June 30, 2017(146)(146)$(250)$(276)(1)Accumulated foreign currency translation losses of$52 million(net of income taxes of$14 million) were reclassified to earnings in fiscal 2017 as a result of the divestitures of IT Services and CapRock and are included in “Discontinued operations, net of income taxes” in our Consolidated Statement of Income in our Fiscal 2017 Form 10-K.
|                                                                                                                                    
|                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|                                                                                                                                     | September 29, 2017                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
|                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|                                                                                                                                     | (In millions)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
|Foreign currency translation, net of income taxes of $2 million and $1 million at September 29, 2017 and June 30, 2017, respectively | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
|Net unrealized loss on hedging derivatives, net of income taxes of $11 million at September 29, 2017 and June 30, 2017               | (16                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
|Unrecognized postretirement obligations, net of income taxes of $89 million at September 29, 2017 and June 30, 2017                  | (146                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
|                                                                                                                                     | $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
|                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|                                                                                                                                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
|(1)                                                                                                                                  | Accumulated foreign currency translation losses of$52 million(net of income taxes of$14 million) were reclassified to earnings in fiscal 2017 as a result of the divestitures of IT Services and CapRock and are included in “Discontinued operations, net of income taxes” in our Consolidated Statement of Income in our Fiscal 2017 Form 10-K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

X- ReferencesNo definition available.
+ Details**Name:**
us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTaxAbstract**Namespace Prefix:**
us-gaap_**Data Type:**
xbrli:stringItemType**Balance Type:**
na**Period Type:**
duration X- DefinitionThe entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.
+ ReferencesReference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -URI http://asc.fasb.org/topic&trid=2134417
+ Details**Name:**
us-gaap_ComprehensiveIncomeNoteTextBlock**Namespace Prefix:**
us-gaap_**Data Type:**
nonnum:textBlockItemType**Balance Type:**
na**Period Type:**
duration