It is not possible to include a package for one chapter and 'unload' it for another part of the document.
However, it's possible to limit the effects what a chapter does, depending on the chapter.
Explicitly define two different pagestyles, one for the particular chapter and another one, that restores the settings (or changes them to something other!)
\documentclass{book}
\usepackage{blindtext}
\usepackage{fancyhdr}
\fancypagestyle{headrule}{%
\renewcommand{\headrulewidth}{2pt}
\fancyhead[CE]{foo}
\fancyhead[LE,RO]{\thepage}
}
\fancypagestyle{noheadrule}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE,RO]{\thepage}
}
\begin{document}
\pagestyle{noheadrule}
\chapter{The one with no headrule}
\blindtext[15]
\clearpage
\pagestyle{headrule}
\chapter{The fancy one!}
\blindtext[15]
\end{document}
pagestyle{fancy}orpagestyle{plain}for the other chapters? ;-) Or defining a pagestyle\fancypagestyle{headrule}, that does not set\headrulewidthto0pt? – May 17 '16 at 18:28